cpuidle: cpuidle-cps: remove unused variable
'core' in cps_cpuidle_init has never been used and is unnecessary, so remove the dead code. Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
ecad4502d0
commit
02018b3929
@ -118,7 +118,7 @@ static void __init cps_cpuidle_unregister(void)
|
|||||||
|
|
||||||
static int __init cps_cpuidle_init(void)
|
static int __init cps_cpuidle_init(void)
|
||||||
{
|
{
|
||||||
int err, cpu, core, i;
|
int err, cpu, i;
|
||||||
struct cpuidle_device *device;
|
struct cpuidle_device *device;
|
||||||
|
|
||||||
/* Detect supported states */
|
/* Detect supported states */
|
||||||
@ -160,7 +160,6 @@ static int __init cps_cpuidle_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for_each_possible_cpu(cpu) {
|
for_each_possible_cpu(cpu) {
|
||||||
core = cpu_data[cpu].core;
|
|
||||||
device = &per_cpu(cpuidle_dev, cpu);
|
device = &per_cpu(cpuidle_dev, cpu);
|
||||||
device->cpu = cpu;
|
device->cpu = cpu;
|
||||||
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user