&& netif_device_present(dev)
&& !signal_pending(current))
{
+#ifdef CONFIG_PM
/* if suspending, then power off and wait */
- if (current->flags & PF_FREEZE) {
+ if (unlikely(current->flags & PF_FREEZE)) {
if (stir->receiving)
receive_stop(stir);
else
if (change_speed(stir, stir->speed))
break;
}
+#endif
/* if something to send? */
skb = xchg(&stir->tx_pending, NULL);
usb_set_intfdata(intf, NULL);
}
-
+#ifdef CONFIG_PM
/* Power management suspend, so power off the transmitter/receiver */
static int stir_suspend(struct usb_interface *intf, u32 state)
{
/* receiver restarted when send thread wakes up */
return 0;
}
+#endif
/*
* USB device callbacks
.probe = stir_probe,
.disconnect = stir_disconnect,
.id_table = dongles,
+#ifdef CONFIG_PM
.suspend = stir_suspend,
.resume = stir_resume,
+#endif
};
/*