diff options
author | Len Brown <len.brown@intel.com> | 2007-12-13 23:50:45 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-12-14 00:09:39 -0500 |
commit | 4963f62045b64f93c45fbcb6f8f0baf1e3e7a127 (patch) | |
tree | f5bd1a7148cc1889af6d8f87c4603550a5aeb909 /drivers/acpi/processor_idle.c | |
parent | 60555e371d56a1e410d9fb6fc68f4e953f8f4109 (diff) |
cpuidle: create processor.latency_factor tunable
Start with default value of 6, so by default,
there is no functional change in this patch.
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index f996d0e37689..26ade1f3f5cd 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -94,6 +94,9 @@ module_param(bm_history, uint, 0644); | |||
94 | 94 | ||
95 | static int acpi_processor_set_power_policy(struct acpi_processor *pr); | 95 | static int acpi_processor_set_power_policy(struct acpi_processor *pr); |
96 | 96 | ||
97 | #else /* CONFIG_CPU_IDLE */ | ||
98 | static unsigned int latency_factor __read_mostly = 6; | ||
99 | module_param(latency_factor, uint, 0644); | ||
97 | #endif | 100 | #endif |
98 | 101 | ||
99 | /* | 102 | /* |
@@ -1576,7 +1579,7 @@ static int acpi_processor_setup_cpuidle(struct acpi_processor *pr) | |||
1576 | 1579 | ||
1577 | snprintf(state->name, CPUIDLE_NAME_LEN, "C%d", i); | 1580 | snprintf(state->name, CPUIDLE_NAME_LEN, "C%d", i); |
1578 | state->exit_latency = cx->latency; | 1581 | state->exit_latency = cx->latency; |
1579 | state->target_residency = cx->latency * 6; | 1582 | state->target_residency = cx->latency * latency_factor; |
1580 | state->power_usage = cx->power; | 1583 | state->power_usage = cx->power; |
1581 | 1584 | ||
1582 | state->flags = 0; | 1585 | state->flags = 0; |