diff options
Diffstat (limited to 'arch/sparc64/prom/misc.c')
-rw-r--r-- | arch/sparc64/prom/misc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc64/prom/misc.c b/arch/sparc64/prom/misc.c index 72d272c9de6b..33c5b7da31e5 100644 --- a/arch/sparc64/prom/misc.c +++ b/arch/sparc64/prom/misc.c | |||
@@ -96,6 +96,10 @@ void prom_cmdline(void) | |||
96 | */ | 96 | */ |
97 | void prom_halt(void) | 97 | void prom_halt(void) |
98 | { | 98 | { |
99 | #ifdef CONFIG_SUN_LDOMS | ||
100 | if (ldom_domaining_enabled) | ||
101 | ldom_power_off(); | ||
102 | #endif | ||
99 | again: | 103 | again: |
100 | p1275_cmd("exit", P1275_INOUT(0, 0)); | 104 | p1275_cmd("exit", P1275_INOUT(0, 0)); |
101 | goto again; /* PROM is out to get me -DaveM */ | 105 | goto again; /* PROM is out to get me -DaveM */ |
@@ -103,6 +107,10 @@ again: | |||
103 | 107 | ||
104 | void prom_halt_power_off(void) | 108 | void prom_halt_power_off(void) |
105 | { | 109 | { |
110 | #ifdef CONFIG_SUN_LDOMS | ||
111 | if (ldom_domaining_enabled) | ||
112 | ldom_power_off(); | ||
113 | #endif | ||
106 | p1275_cmd("SUNW,power-off", P1275_INOUT(0, 0)); | 114 | p1275_cmd("SUNW,power-off", P1275_INOUT(0, 0)); |
107 | 115 | ||
108 | /* if nothing else helps, we just halt */ | 116 | /* if nothing else helps, we just halt */ |