Skip to content

Commit 4d37cc2

Browse files
Qais YousefKAGA-KOKO
authored andcommitted
powerpc: Replace cpu_up/down() with add/remove_cpu()
The core device API performs extra housekeeping bits that are missing from directly calling cpu_up/down. See commit a6717c0 ("powerpc/rtas: use device model APIs and serialization during LPM") for an example description of what might go wrong. This also prepares to make cpu_up/down() a private interface of the CPU subsystem. Signed-off-by: Qais Yousef <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Michael Ellerman <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent af7aa04 commit 4d37cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kexec/core_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ static void wake_offline_cpus(void)
212212
if (!cpu_online(cpu)) {
213213
printk(KERN_INFO "kexec: Waking offline cpu %d.\n",
214214
cpu);
215-
WARN_ON(cpu_up(cpu));
215+
WARN_ON(add_cpu(cpu));
216216
}
217217
}
218218
}

0 commit comments

Comments
 (0)