[Skiboot] [PATCH 2/6] mambo: Switch to using attn instruction for power down

Michael Neuling mikey at neuling.org
Fri Apr 29 15:57:03 AEST 2016


Currently the mambo platform uses the mambo specific exit call.

The architected attn instruction works fine in mambo so let's use that
rather than a sim specific hack.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 platforms/mambo/mambo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c
index dbed08d..ce49961 100644
--- a/platforms/mambo/mambo.c
+++ b/platforms/mambo/mambo.c
@@ -23,6 +23,7 @@
 #include <opal-internal.h>
 #include <time-utils.h>
 #include <time.h>
+#include <processor.h>
 
 extern int64_t mambo_get_time(void);
 
@@ -67,8 +68,7 @@ static void mambo_platform_init(void)
 
 static int64_t mambo_cec_power_down(uint64_t request __unused)
 {
-	if (chip_quirk(QUIRK_MAMBO_CALLOUTS))
-		mambo_sim_exit();
+	trigger_attn();
 
 	return OPAL_UNSUPPORTED;
 }
-- 
2.7.4



More information about the Skiboot mailing list