aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorCorey Minyard <minyard@acm.org>2006-12-06 23:41:06 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:47 -0500
commit15c62e10bb49eebf3da2b010a9196f5095947b0b (patch)
tree17a522a5d4a0a356de1ddfb6a1136717dfbbede8 /drivers
parent55162fb165571b3ba4283fe657f1a5968cef361a (diff)
[PATCH] IPMI: add poll delay
Make sure to delay a little in the IPMI poll routine so we can pass in a timeout time and thus time things out. Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index c02f5177a816..bedd76310045 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -807,7 +807,12 @@ static void poll(void *send_info)
807{ 807{
808 struct smi_info *smi_info = send_info; 808 struct smi_info *smi_info = send_info;
809 809
810 smi_event_handler(smi_info, 0); 810 /*
811 * Make sure there is some delay in the poll loop so we can
812 * drive time forward and timeout things.
813 */
814 udelay(10);
815 smi_event_handler(smi_info, 10);
811} 816}
812 817
813static void request_events(void *send_info) 818static void request_events(void *send_info)