Commit 681c8c6f authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] janitor: char/ipmi_si_intf: add set_current_state()

Add set_current_state() before schedule_timeout() so a delay is achieved.
Without the addition, schedule_timeout() returns immediately.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d574525b
...@@ -2283,6 +2283,7 @@ void __exit cleanup_one_si(struct smi_info *to_clean) ...@@ -2283,6 +2283,7 @@ void __exit cleanup_one_si(struct smi_info *to_clean)
interface is in a clean state. */ interface is in a clean state. */
while ((to_clean->curr_msg) || (to_clean->si_state != SI_NORMAL)) { while ((to_clean->curr_msg) || (to_clean->si_state != SI_NORMAL)) {
poll(to_clean); poll(to_clean);
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1); schedule_timeout(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment