pci: replace schedule_timeout() with
Subsystems (2)
PATCH 1/1 pci: replace schedule_timeout() with
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/pci/pci.c +1 -4
@@ -291,10 +291,7 @@ pci_set_power_state(struct pci_dev *dev,/* Mandatory power management transition delays */ /* see PCI PM 1.1 5.6.1 table 18 */ if (state ==3 || dev->current_state ==3 ) - { -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /100 ); - } +msleep (10 );else if (state ==2 || dev->current_state ==2 )udelay (200 ); dev->current_state = state;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors