aboutsummaryrefslogtreecommitdiff
path: root/hw/slw.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-09 14:02:32 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2015-02-09 14:05:21 +1100
commit49123c7aecd087448f9795b7e6409ec0d473e5c6 (patch)
treed3d1608a9d643e192c575ae118835bfc0b07e7bd /hw/slw.c
parentc5a06a551ef55468e7bc46615f71f4ee4dbeaa02 (diff)
downloadskiboot-49123c7aecd087448f9795b7e6409ec0d473e5c6.zip
skiboot-49123c7aecd087448f9795b7e6409ec0d473e5c6.tar.gz
skiboot-49123c7aecd087448f9795b7e6409ec0d473e5c6.tar.bz2
cpu: Handle opal_reinit_cpus() more gracefully on P7
Don't try to call into slw_reinit() which causes error logs to be generated. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hw/slw.c')
-rw-r--r--hw/slw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/slw.c b/hw/slw.c
index 3f3f649..30f9420 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -751,6 +751,9 @@ int64_t slw_reinit(uint64_t flags)
return OPAL_UNSUPPORTED;
#endif
+ if (proc_gen < proc_gen_p8)
+ return OPAL_UNSUPPORTED;
+
if (flags & OPAL_REINIT_CPUS_HILE_BE)
target_le = false;
if (flags & OPAL_REINIT_CPUS_HILE_LE)