diff options
author | Matt Redfearn <matt.redfearn@imgtec.com> | 2016-09-07 05:45:20 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-04 10:13:57 -0400 |
commit | 72bc8c75eaf72aa0e45652d09f1b80dd5346797e (patch) | |
tree | 867f30c28674793ac25a674e9f7e4646c35dd83a | |
parent | 4b6401365a6ccc53de820209cb328507a2103d30 (diff) |
cpuidle: cpuidle-cps: Enable use with MIPSr6 CPUs.
This patch enables the MIPS CPS driver for MIPSr6 CPUs.
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: linux-mips@linux-mips.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14228/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | drivers/cpuidle/Kconfig.mips | 2 | ||||
-rw-r--r-- | drivers/cpuidle/cpuidle-cps.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpuidle/Kconfig.mips b/drivers/cpuidle/Kconfig.mips index 4102be01d06a..512ee37b374b 100644 --- a/drivers/cpuidle/Kconfig.mips +++ b/drivers/cpuidle/Kconfig.mips | |||
@@ -5,7 +5,7 @@ config MIPS_CPS_CPUIDLE | |||
5 | bool "CPU Idle driver for MIPS CPS platforms" | 5 | bool "CPU Idle driver for MIPS CPS platforms" |
6 | depends on CPU_IDLE && MIPS_CPS | 6 | depends on CPU_IDLE && MIPS_CPS |
7 | depends on SYS_SUPPORTS_MIPS_CPS | 7 | depends on SYS_SUPPORTS_MIPS_CPS |
8 | select ARCH_NEEDS_CPU_IDLE_COUPLED if MIPS_MT | 8 | select ARCH_NEEDS_CPU_IDLE_COUPLED if MIPS_MT || CPU_MIPSR6 |
9 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP | 9 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
10 | select MIPS_CPS_PM | 10 | select MIPS_CPS_PM |
11 | default y | 11 | default y |
diff --git a/drivers/cpuidle/cpuidle-cps.c b/drivers/cpuidle/cpuidle-cps.c index 1adb6980b707..926ba9871c62 100644 --- a/drivers/cpuidle/cpuidle-cps.c +++ b/drivers/cpuidle/cpuidle-cps.c | |||
@@ -163,7 +163,7 @@ static int __init cps_cpuidle_init(void) | |||
163 | core = cpu_data[cpu].core; | 163 | core = cpu_data[cpu].core; |
164 | device = &per_cpu(cpuidle_dev, cpu); | 164 | device = &per_cpu(cpuidle_dev, cpu); |
165 | device->cpu = cpu; | 165 | device->cpu = cpu; |
166 | #ifdef CONFIG_MIPS_MT | 166 | #ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED |
167 | cpumask_copy(&device->coupled_cpus, &cpu_sibling_map[cpu]); | 167 | cpumask_copy(&device->coupled_cpus, &cpu_sibling_map[cpu]); |
168 | #endif | 168 | #endif |
169 | 169 | ||