[Skiboot] [PATCH 31/34] cpu: Make endian switch message more informative

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Jul 24 09:27:25 AEST 2016


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 core/cpu.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core/cpu.c b/core/cpu.c
index 5d362c5..0ce655b 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -993,8 +993,12 @@ static int64_t opal_reinit_cpus(uint64_t flags)
 	int64_t rc = OPAL_SUCCESS;
 	int i;
 
-	prerror("OPAL: Trying a CPU re-init with flags: 0x%llx\n", flags);
+	prlog(PR_DEBUG, "OPAL: CPU re-init with flags: 0x%llx\n", flags);
 
+	if (flags & OPAL_REINIT_CPUS_HILE_LE)
+		prlog(PR_NOTICE, "OPAL: Switch to little-endian OS\n");
+	else if (flags & OPAL_REINIT_CPUS_HILE_BE)
+		prlog(PR_NOTICE, "OPAL: Switch to big-endian OS\n");
  again:
 	lock(&reinit_lock);
 
-- 
2.7.4



More information about the Skiboot mailing list