Commit 88e57223 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Adam Belay

[PNPBIOS] use msleep_interruptible()

Description: Use msleep_interruptible() instead of
schedule_timeout() to guarantee the task delays as expected.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarAdam Belay <ambx1@neo.rr.com>
parent 4723ebe8
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/dmi.h> #include <linux/dmi.h>
#include <linux/delay.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/desc.h> #include <asm/desc.h>
...@@ -177,8 +178,7 @@ static int pnp_dock_thread(void * unused) ...@@ -177,8 +178,7 @@ static int pnp_dock_thread(void * unused)
/* /*
* Poll every 2 seconds * Poll every 2 seconds
*/ */
set_current_state(TASK_INTERRUPTIBLE); msleep_interruptible(2000);
schedule_timeout(HZ*2);
if(signal_pending(current)) if(signal_pending(current))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment