Skip to content

Commit

Permalink
[PATCH] IPMI: add poll delay
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corey Minyard authored and Linus Torvalds committed Dec 7, 2006
1 parent 55162fb commit 15c62e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,12 @@ static void poll(void *send_info)
{
struct smi_info *smi_info = send_info;

smi_event_handler(smi_info, 0);
/*
* Make sure there is some delay in the poll loop so we can
* drive time forward and timeout things.
*/
udelay(10);
smi_event_handler(smi_info, 10);
}

static void request_events(void *send_info)
Expand Down

0 comments on commit 15c62e1

Please sign in to comment.