]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] janitor: char/ipmi_si_intf: add set_current_state()
authorMaximilian Attems <janitor@sternwelten.at>
Tue, 19 Oct 2004 01:20:11 +0000 (18:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:20:11 +0000 (18:20 -0700)
Add set_current_state() before schedule_timeout() so a delay is achieved.
Without the addition, schedule_timeout() returns immediately.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_si_intf.c

index 835d6a431a00c00fbe19cbd0e183ca77695cc681..6a943d41093c6d8ec9535e78d4851972ae56f198 100644 (file)
@@ -2283,6 +2283,7 @@ void __exit cleanup_one_si(struct smi_info *to_clean)
           interface is in a clean state. */
        while ((to_clean->curr_msg) || (to_clean->si_state != SI_NORMAL)) {
                poll(to_clean);
+               set_current_state(TASK_UNINTERRUPTIBLE);
                schedule_timeout(1);
        }