Skip to content

Commit

Permalink
cpuidle: create processor.latency_factor tunable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Len Brown committed Dec 14, 2007
1 parent 60555e3 commit 4963f62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/acpi/processor_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ module_param(bm_history, uint, 0644);

static int acpi_processor_set_power_policy(struct acpi_processor *pr);

#else /* CONFIG_CPU_IDLE */
static unsigned int latency_factor __read_mostly = 6;
module_param(latency_factor, uint, 0644);
#endif

/*
Expand Down Expand Up @@ -1576,7 +1579,7 @@ static int acpi_processor_setup_cpuidle(struct acpi_processor *pr)

snprintf(state->name, CPUIDLE_NAME_LEN, "C%d", i);
state->exit_latency = cx->latency;
state->target_residency = cx->latency * 6;
state->target_residency = cx->latency * latency_factor;
state->power_usage = cx->power;

state->flags = 0;
Expand Down

0 comments on commit 4963f62

Please sign in to comment.