Randy Dunlap 6f02e39fa4 MIPS: SMP-CPS: fix build error when HOTPLUG_CPU not set
When MIPS_CPS=y, MIPS_CPS_PM is not set, HOTPLUG_CPU is not set, and
KEXEC=y, cps_shutdown_this_cpu() attempts to call cps_pm_enter_state(),
which is not built when MIPS_CPS_PM is not set.
Conditionally execute the else branch based on CONFIG_HOTPLUG_CPU
to remove the build error.
This build failure is from a randconfig file.

mips-linux-ld: arch/mips/kernel/smp-cps.o: in function `$L162':
smp-cps.c:(.text.cps_kexec_nonboot_cpu+0x31c): undefined reference to `cps_pm_enter_state'

Fixes: 1447864bee4c ("MIPS: kexec: CPS systems to halt nonboot CPUs")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Dengcheng Zhu <dzhu@wavecomp.com>
Cc: Paul Burton <paulburton@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Cc: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2023-02-19 09:25:38 +01:00
..
2021-04-07 16:11:05 +02:00
2021-03-10 15:18:40 +01:00
2022-05-04 22:22:59 +02:00
2022-07-14 11:52:29 +02:00
2022-03-01 10:07:22 +01:00
2018-10-31 08:54:16 -07:00
2022-02-23 13:08:30 +01:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2022-07-29 18:07:13 -07:00
2022-02-22 09:35:49 +01:00
2022-05-19 19:30:31 +02:00
2022-02-22 09:35:49 +01:00
2022-02-22 09:35:49 +01:00
2022-10-10 12:49:34 -07:00
2022-02-22 09:35:49 +01:00
2022-03-28 17:29:53 -07:00
2020-05-15 14:53:19 +02:00
2021-01-27 21:49:16 +01:00
2020-05-07 11:55:47 +02:00