cpu: Do not access xscom registers for guarded CPUs
Guarded CPUs are powered down so access to their PC xscom registers
fails. This prevents the failed attempt and accompanying warnings.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
diff --git a/core/init.c b/core/init.c
index 8e49bb9..fae6ec6 100644
--- a/core/init.c
+++ b/core/init.c
@@ -1017,7 +1017,7 @@
* HID[5] and mask the checkstop that it can cause. CME does
* the recovery handling for us.
*/
- for_each_cpu(cpu) {
+ for_each_ungarded_primary(cpu) {
chip_id = cpu->chip_id;
core_id = pir_to_core_id(cpu->pir);