mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ARM: EXYNOS: Fix build breakage cpuidle on !SMP
The Exynos cpuidle driver has coupled cpuidle built-in so it cannot be built without SMP: arch/arm/mach-exynos/pm.c: In function 'exynos_cpu0_enter_aftr': arch/arm/mach-exynos/pm.c:246:4: error: implicit declaration of function 'arch_send_wakeup_ipi_mask' [-Werror=implicit-function-declaration] arch/arm/mach-exynos/built-in.o: In function 'exynos_pre_enter_aftr': ../arch/arm/mach-exynos/pm.c:300: undefined reference to 'cpu_boot_reg_base' arch/arm/mach-exynos/built-in.o: In function 'exynos_cpu1_powerdown': ../arch/arm/mach-exynos/pm.c:282: undefined reference to 'exynos_cpu_power_down' Fix it by adding missing checks for SMP. Reported-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Kukjin Kim <[email protected]>
This commit is contained in:
parent
435c345448
commit
cfdda3535f
3 changed files with 5 additions and 2 deletions
|
|
@ -117,7 +117,8 @@ static int exynos_cpuidle_probe(struct platform_device *pdev)
|
|||
{
|
||||
int ret;
|
||||
|
||||
if (of_machine_is_compatible("samsung,exynos4210")) {
|
||||
if (IS_ENABLED(CONFIG_SMP) &&
|
||||
of_machine_is_compatible("samsung,exynos4210")) {
|
||||
exynos_cpuidle_pdata = pdev->dev.platform_data;
|
||||
|
||||
ret = cpuidle_register(&exynos_coupled_idle_driver,
|
||||
|
|
|
|||
Loading…
Reference in a new issue