char/sis-agp: replace
Subsystems (2)
PATCH 24/33 char/sis-agp: replace
Any comments would be appreciated.
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays as expected.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/char/agp/sis-agp.c +2 -2
@@ -6,6 +6,7 @@#include <linux/pci.h> #include <linux/init.h> #include <linux/agp_backend.h> +#include <linux/delay.h> #include "agp.h" #define SIS_ATTBASE 0x90
@@ -102,8 +103,7 @@ static void sis_delayed_enable(u32 mode)*/ if (device->device == agp_bridge->dev->device) { printk(KERN_INFO PFX "SiS delay workaround: giving bridge time to recover.\n"); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (1 +(HZ *10 )/1000 ); +msleep (10 ); } } }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors