]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Move arch_cpu_idle_dead() into smp.c
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:56:32 +0000 (11:56 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Sep 2020 09:59:43 +0000 (19:59 +1000)
commit36961ce63a4d5f022fecf7e61f8599f7bf7b22cd
treee5a7f46657901c06600521f505158cf1b85b3b50
parent28e6219968bfa1dee44b5dbaf6820b1dbc2d815c
powerpc: Move arch_cpu_idle_dead() into smp.c

arch_cpu_idle_dead() is in idle.c, which makes sense, but it's inside
a CONFIG_HOTPLUG_CPU block.

It would be more at home in smp.c, inside the existing
CONFIG_HOTPLUG_CPU block. Note that CONFIG_HOTPLUG_CPU depends on
CONFIG_SMP so even though smp.c is not built for SMP=n builds, that's
fine.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819015634.1974478-1-mpe@ellerman.id.au
arch/powerpc/kernel/idle.c
arch/powerpc/kernel/smp.c