ixgb/ixgb_osdep: replace schedule_timeout() with msleep()
Subsystems (2)
PATCH 9/16 ixgb/ixgb_osdep: replace schedule_timeout() with msleep()
I would appreciate any comments from the janitor@sternweltens list.
Description: Replace schedule_timeout() with msleep() to guarantee the task delays for the desired time. Redefine msec_delay(x) to directly call msleep(x).
Signed-off-by Nishanth Aravamudan <[email protected]>
Signed-off-by Maximilian Attems <[email protected]>
---
linux-2.6.9-rc1-bk7-max/drivers/net/ixgb/ixgb_osdep.h | 8 +------- 1 files changed, 1 insertion(+), 7 deletions(-)
drivers/net/ixgb/ixgb_osdep.h renamed from drivers/net/ixgb/ixgb_osdep.h~msleep-drivers_net_ixgb_osdep +1 -7
@@ -41,13 +41,7 @@#include <linux/sched.h> #ifndef msec_delay -#define msec_delay (x) do { if(in_interrupt()) { \ -/* Don't mdelay in interrupt context! */ \ -BUG (); \ - } else { \ -set_current_state (TASK_UNINTERRUPTIBLE ); \ - schedule_timeout((x * HZ)/1000 + 2); \ - } } while(0) +#define msec_delay (x) msleep(x)#endif #define PCI_COMMAND_REGISTER PCI_COMMAND
_