diff options
-rw-r--r-- | arch/powerpc/include/asm/processor.h | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/sysfs.c | 2 | ||||
-rw-r--r-- | drivers/cpuidle/cpuidle-pseries.c | 17 |
3 files changed, 0 insertions, 26 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index c2c0f4478be3..b62de43ae5f3 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h | |||
@@ -450,13 +450,6 @@ enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF}; | |||
450 | 450 | ||
451 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ | 451 | extern int powersave_nap; /* set if nap mode can be used in idle loop */ |
452 | extern void power7_nap(void); | 452 | extern void power7_nap(void); |
453 | |||
454 | #ifdef CONFIG_PSERIES_CPUIDLE | ||
455 | extern void update_smt_snooze_delay(int cpu, int residency); | ||
456 | #else | ||
457 | static inline void update_smt_snooze_delay(int cpu, int residency) {} | ||
458 | #endif | ||
459 | |||
460 | extern void flush_instruction_cache(void); | 453 | extern void flush_instruction_cache(void); |
461 | extern void hard_reset_now(void); | 454 | extern void hard_reset_now(void); |
462 | extern void poweroff_now(void); | 455 | extern void poweroff_now(void); |
diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index d4a43e64a6a9..97e1dc917683 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c | |||
@@ -51,8 +51,6 @@ static ssize_t store_smt_snooze_delay(struct device *dev, | |||
51 | return -EINVAL; | 51 | return -EINVAL; |
52 | 52 | ||
53 | per_cpu(smt_snooze_delay, cpu->dev.id) = snooze; | 53 | per_cpu(smt_snooze_delay, cpu->dev.id) = snooze; |
54 | update_smt_snooze_delay(cpu->dev.id, snooze); | ||
55 | |||
56 | return count; | 54 | return count; |
57 | } | 55 | } |
58 | 56 | ||
diff --git a/drivers/cpuidle/cpuidle-pseries.c b/drivers/cpuidle/cpuidle-pseries.c index bb56091685d3..7ab564aa0b1c 100644 --- a/drivers/cpuidle/cpuidle-pseries.c +++ b/drivers/cpuidle/cpuidle-pseries.c | |||
@@ -162,23 +162,6 @@ static struct cpuidle_state shared_states[] = { | |||
162 | .enter = &shared_cede_loop }, | 162 | .enter = &shared_cede_loop }, |
163 | }; | 163 | }; |
164 | 164 | ||
165 | void update_smt_snooze_delay(int cpu, int residency) | ||
166 | { | ||
167 | struct cpuidle_driver *drv = cpuidle_get_driver(); | ||
168 | struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu); | ||
169 | |||
170 | if (cpuidle_state_table != dedicated_states) | ||
171 | return; | ||
172 | |||
173 | if (residency < 0) { | ||
174 | /* Disable the Nap state on that cpu */ | ||
175 | if (dev) | ||
176 | dev->states_usage[1].disable = 1; | ||
177 | } else | ||
178 | if (drv) | ||
179 | drv->states[1].target_residency = residency; | ||
180 | } | ||
181 | |||
182 | static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n, | 165 | static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n, |
183 | unsigned long action, void *hcpu) | 166 | unsigned long action, void *hcpu) |
184 | { | 167 | { |