[PATCH] IPMI: use schedule in kthread

Corey Minyard <minyard@acm.org>

The kthread used to speed up polling for IPMI was using udelay in its
busy-wait polling loop when the lower-level state machine told it to do a
short delay.  This just used CPU and didn't help scheduling, thus causing
bad problems with other tasks.  Call schedule() instead.

Signed-off-by: Corey Minyard <minyard@acm.org>
Acked-by: Matt Domsch <Matt_Domsch@dell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
akpm@osdl.org 2006-06-27 02:54:04 -07:00 коммит произвёл Linus Torvalds
Родитель c32e066057
Коммит 33979734cd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -809,7 +809,7 @@ static int ipmi_thread(void *data)
/* do nothing */ /* do nothing */
} }
else if (smi_result == SI_SM_CALL_WITH_DELAY) else if (smi_result == SI_SM_CALL_WITH_DELAY)
udelay(1); schedule();
else else
schedule_timeout_interruptible(1); schedule_timeout_interruptible(1);
} }