mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
powerpc/pseries: Use 'true' instead of '1' for orderly_poweroff
orderly_poweroff is expecting a bool parameter, so use 'true' instead '1' Signed-off-by: liguang <lig.fnst@cn.fujitsu.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
a5b45ded09
commit
1b7e0cbe49
@ -83,7 +83,7 @@ static void handle_system_shutdown(char event_modifier)
|
||||
switch (event_modifier) {
|
||||
case EPOW_SHUTDOWN_NORMAL:
|
||||
pr_emerg("Firmware initiated power off");
|
||||
orderly_poweroff(1);
|
||||
orderly_poweroff(true);
|
||||
break;
|
||||
|
||||
case EPOW_SHUTDOWN_ON_UPS:
|
||||
@ -95,13 +95,13 @@ static void handle_system_shutdown(char event_modifier)
|
||||
pr_emerg("Loss of system critical functions reported by "
|
||||
"firmware");
|
||||
pr_emerg("Check RTAS error log for details");
|
||||
orderly_poweroff(1);
|
||||
orderly_poweroff(true);
|
||||
break;
|
||||
|
||||
case EPOW_SHUTDOWN_AMBIENT_TEMPERATURE_TOO_HIGH:
|
||||
pr_emerg("Ambient temperature too high reported by firmware");
|
||||
pr_emerg("Check RTAS error log for details");
|
||||
orderly_poweroff(1);
|
||||
orderly_poweroff(true);
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -162,7 +162,7 @@ void rtas_parse_epow_errlog(struct rtas_error_log *log)
|
||||
|
||||
case EPOW_SYSTEM_HALT:
|
||||
pr_emerg("Firmware initiated power off");
|
||||
orderly_poweroff(1);
|
||||
orderly_poweroff(true);
|
||||
break;
|
||||
|
||||
case EPOW_MAIN_ENCLOSURE:
|
||||
|
Loading…
Reference in New Issue
Block a user