]> err.no Git - linux-2.6/commit
ipmi: run to completion fixes
authorCorey Minyard <cminyard@mvista.com>
Tue, 29 Apr 2008 08:01:02 +0000 (01:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:14 +0000 (08:06 -0700)
commitbda4c30aa6f7dc1483f39ea1dfe37bcab8a96207
tree760c538139c5b41ef54a27d62e5a8a1b01cf1c60
parent4ea18425436e7c72716b7f8d314775f399821195
ipmi: run to completion fixes

The "run_to_completion" mode was somewhat broken.  Locks need to be avoided in
run_to_completion mode, and it shouldn't be used by normal users, just
internally for panic situations.

This patch removes locks in run_to_completion mode and removes the user call
for setting the mode.  The only user was the poweroff code, but it was easily
converted to use the polling interface.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_poweroff.c
drivers/char/ipmi/ipmi_si_intf.c
include/linux/ipmi.h