diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2020-08-04 23:02:15 +0530 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-08-07 16:00:20 +1000 |
commit | e49a52f0cc028acbe41ea7aaee67b2f68f7a7d5b (patch) | |
tree | 7d7731f203de261d0baec383a57ae5aa5a68decd /core | |
parent | 1df445d7a278b0b5fb40e9f2641d28ccfae51813 (diff) | |
download | skiboot-e49a52f0cc028acbe41ea7aaee67b2f68f7a7d5b.zip skiboot-e49a52f0cc028acbe41ea7aaee67b2f68f7a7d5b.tar.gz skiboot-e49a52f0cc028acbe41ea7aaee67b2f68f7a7d5b.tar.bz2 |
chip: Fix pir_to_thread_id for fused cores
pir_to_core_id() and pir_to_thread_id() are extensively
used by the direct controls code and are expected to return
the "normal" (non-fused, aka EC) core/thread IDs.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chip.c b/core/chip.c index 5c3276a..c57694a 100644 --- a/core/chip.c +++ b/core/chip.c @@ -38,7 +38,7 @@ uint32_t pir_to_thread_id(uint32_t pir) { if (proc_gen == proc_gen_p9) { if (this_cpu()->is_fused_core) - return P9_PIR2FUSEDTHREADID(pir); + return P9_PIRFUSED2NORMALTHREADID(pir); else return P9_PIR2THREADID(pir); } else if (proc_gen == proc_gen_p8) |