Skip to content

Commit 77bac23

Browse files
author
Fox Snowpatch
committed
1 parent 85ff933 commit 77bac23

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

  • arch/powerpc/platforms/pseries

arch/powerpc/platforms/pseries/smp.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,24 @@ static void dbell_or_ic_cause_ipi(int cpu)
173173

174174
static int pseries_cause_nmi_ipi(int cpu)
175175
{
176-
int hwcpu;
176+
int hwcpu, k;
177177

178178
if (cpu == NMI_IPI_ALL_OTHERS) {
179-
hwcpu = H_SIGNAL_SYS_RESET_ALL_OTHERS;
179+
180+
for_each_present_cpu(k) {
181+
if (k != smp_processor_id()) {
182+
hwcpu = get_hard_smp_processor_id(k);
183+
184+
/* it is possible that cpu is present,
185+
* but not started yet
186+
*/
187+
if (paca_ptrs[hwcpu]->cpu_start == 1)
188+
plpar_signal_sys_reset(hwcpu);
189+
}
190+
}
191+
192+
return 1;
193+
180194
} else {
181195
if (cpu < 0) {
182196
WARN_ONCE(true, "incorrect cpu parameter %d", cpu);

0 commit comments

Comments
 (0)