Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Kconfig: Add missing MIPS_CPS dependencies to PM and cpuidle

The MIPS_CPS_PM and MIPS_CPS_CPUIDLE implementation should depend
on the MIPS_CPS symbol to avoid the following build problem

arch/mips/kernel/pm-cps.c: In function 'cps_pm_enter_state':
arch/mips/kernel/pm-cps.c:164:26: error: 'cpu_coherent_mask' undeclared
(first use in this function)
cpumask_clear_cpu(cpu, &cpu_coherent_mask);
^
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/7798/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Markos Chandras and committed by
Ralf Baechle
39a59593 9d26024c

+2 -1
+1
arch/mips/Kconfig
··· 2066 2066 support is unavailable. 2067 2067 2068 2068 config MIPS_CPS_PM 2069 + depends on MIPS_CPS 2069 2070 select MIPS_CPC 2070 2071 bool 2071 2072
+1 -1
drivers/cpuidle/Kconfig.mips
··· 3 3 # 4 4 config MIPS_CPS_CPUIDLE 5 5 bool "CPU Idle driver for MIPS CPS platforms" 6 - depends on CPU_IDLE 6 + depends on CPU_IDLE && MIPS_CPS 7 7 depends on SYS_SUPPORTS_MIPS_CPS 8 8 select ARCH_NEEDS_CPU_IDLE_COUPLED if MIPS_MT 9 9 select GENERIC_CLOCKEVENTS_BROADCAST if SMP