aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle-pseries.c17
1 files changed, 0 insertions, 17 deletions
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
165void 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
182static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n, 165static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n,
183 unsigned long action, void *hcpu) 166 unsigned long action, void *hcpu)
184{ 167{