sis-agp: replace schedule_timeout() with
Subsystems (2)
PATCH 1/1 sis-agp: replace schedule_timeout() with
I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Uses msleep() instead of schedule_timeout() to guarantee the task delays at least the desired time amount.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/char/agp/sis-agp.c +2 -2
@@ -5,6 +5,7 @@#include <linux/module.h> #include <linux/pci.h> #include <linux/init.h> +#include <linux/delay.h> #include <linux/agp_backend.h> #include "agp.h"
@@ -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 (HZ );/* sleep 1s */ } } }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors