Commit b7013f4c authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] Make kIrDAd us interruptible sleep

Use interruptible sleep rather than uninterruptible to avoid perturbing load
average.
parent b446894a
...@@ -151,7 +151,7 @@ static int irda_thread(void *startup) ...@@ -151,7 +151,7 @@ static int irda_thread(void *startup)
while (irda_rq_queue.thread != NULL) { while (irda_rq_queue.thread != NULL) {
set_task_state(current, TASK_UNINTERRUPTIBLE); set_task_state(current, TASK_INTERRUPTIBLE);
add_wait_queue(&irda_rq_queue.kick, &wait); add_wait_queue(&irda_rq_queue.kick, &wait);
if (list_empty(&irda_rq_queue.request_list)) if (list_empty(&irda_rq_queue.request_list))
schedule(); schedule();
......
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