OSDN Git Service

powerpc/smp: Move ppc_md.cpu_die() to smp_ops.cpu_offline_self()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:56:34 +0000 (11:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Sep 2020 09:59:43 +0000 (19:59 +1000)
commit39f87561454dc33efb2a3d8354d066207acac8a6
tree8f614a84e5b9159733e60999e416ed78795e4982
parentbf3c1464db883a953ad7bbed64924480b8b2b244
powerpc/smp: Move ppc_md.cpu_die() to smp_ops.cpu_offline_self()

We have smp_ops->cpu_die() and ppc_md.cpu_die(). One of them offlines
the current CPU and one offlines another CPU, can you guess which is
which? Also one is in smp_ops and one is in ppc_md?

So rename ppc_md.cpu_die(), to cpu_offline_self(), because that's what
it does. And move it into smp_ops where it belongs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819015634.1974478-3-mpe@ellerman.id.au
arch/powerpc/include/asm/machdep.h
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c
arch/powerpc/kernel/sysfs.c
arch/powerpc/platforms/85xx/smp.c
arch/powerpc/platforms/powermac/pmac.h
arch/powerpc/platforms/powermac/sleep.S
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/powernv/smp.c
arch/powerpc/platforms/pseries/hotplug-cpu.c