cpu: fix core0 cannot be offline in 32BIT kernel [1/1]

PD#SWPL-114632

Problem:
fix core0 cannot be offline in 32BIT kernel

Solution:
fix core0 cannot be offline in 32BIT kernel

Verify:
on s4_aq222

Change-Id: I0c1bf91e013f133851494622bd59da33ac038a51
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
This commit is contained in:
qiankun.wang
2023-05-12 15:01:39 +08:00
committed by Dongjin Kim
parent 512585a440
commit 0460eae431

View File

@@ -236,7 +236,11 @@ int platform_can_hotplug_cpu(unsigned int cpu)
* since this is special on a lot of platforms, e.g. because
* of clock tick interrupts.
*/
#if IS_ENABLED(CONFIG_AMLOGIC_HOTPLUG_ARM_CPU0)
return 1;
#else
return cpu != 0;
#endif
}
static void ipi_teardown(int cpu)