public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7/12] IPMI: add poll delay
@ 2006-12-02  4:35 Corey Minyard
  2006-12-03 21:26 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Corey Minyard @ 2006-12-02  4:35 UTC (permalink / raw)
  To: Andrew Morton, Linux Kernel; +Cc: OpenIPMI Developers


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>

Index: linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
===================================================================
--- linux-2.6.19-rc6.orig/drivers/char/ipmi/ipmi_si_intf.c
+++ linux-2.6.19-rc6/drivers/char/ipmi/ipmi_si_intf.c
@@ -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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-05 22:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-02  4:35 [PATCH 7/12] IPMI: add poll delay Corey Minyard
2006-12-03 21:26 ` Andrew Morton
2006-12-05 13:43   ` Corey Minyard
2006-12-05 22:40     ` Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox