diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-06-20 06:13:23 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-21 02:01:51 -0400 |
commit | e8e71fa426d72914c500e98afa2076628076f511 (patch) | |
tree | d434ebe057ed2c79d59886dd97881df430e3ea0a /arch/powerpc/platforms | |
parent | 1bc98de26d3f270e004421685a8e698e91cf95ca (diff) |
powernv/opal: Disable OPAL notifier upon poweroff
While we're restarting or powering off the system, we needn't
the OPAL notifier any more. So just to disable that.
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c index d4459bfc92f7..84438af96c05 100644 --- a/arch/powerpc/platforms/powernv/setup.c +++ b/arch/powerpc/platforms/powernv/setup.c | |||
@@ -93,6 +93,8 @@ static void __noreturn pnv_restart(char *cmd) | |||
93 | { | 93 | { |
94 | long rc = OPAL_BUSY; | 94 | long rc = OPAL_BUSY; |
95 | 95 | ||
96 | opal_notifier_disable(); | ||
97 | |||
96 | while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { | 98 | while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { |
97 | rc = opal_cec_reboot(); | 99 | rc = opal_cec_reboot(); |
98 | if (rc == OPAL_BUSY_EVENT) | 100 | if (rc == OPAL_BUSY_EVENT) |
@@ -108,6 +110,8 @@ static void __noreturn pnv_power_off(void) | |||
108 | { | 110 | { |
109 | long rc = OPAL_BUSY; | 111 | long rc = OPAL_BUSY; |
110 | 112 | ||
113 | opal_notifier_disable(); | ||
114 | |||
111 | while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { | 115 | while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { |
112 | rc = opal_cec_power_down(0); | 116 | rc = opal_cec_power_down(0); |
113 | if (rc == OPAL_BUSY_EVENT) | 117 | if (rc == OPAL_BUSY_EVENT) |