|
@@ -162,23 +162,6 @@ static struct cpuidle_state shared_states[] = {
|
|
|
.enter = &shared_cede_loop },
|
|
|
};
|
|
|
|
|
|
-void update_smt_snooze_delay(int cpu, int residency)
|
|
|
-{
|
|
|
- struct cpuidle_driver *drv = cpuidle_get_driver();
|
|
|
- struct cpuidle_device *dev = per_cpu(cpuidle_devices, cpu);
|
|
|
-
|
|
|
- if (cpuidle_state_table != dedicated_states)
|
|
|
- return;
|
|
|
-
|
|
|
- if (residency < 0) {
|
|
|
- /* Disable the Nap state on that cpu */
|
|
|
- if (dev)
|
|
|
- dev->states_usage[1].disable = 1;
|
|
|
- } else
|
|
|
- if (drv)
|
|
|
- drv->states[1].target_residency = residency;
|
|
|
-}
|
|
|
-
|
|
|
static int pseries_cpuidle_add_cpu_notifier(struct notifier_block *n,
|
|
|
unsigned long action, void *hcpu)
|
|
|
{
|