summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-12-21 15:32:21 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:38:24 -0700
commit2e37dfceb3a5a6104341d2d59de38e40d8d73c01 (patch)
tree0f7fd57636d12df2f7d1a22bef7240bb36322f1b /drivers/cpufreq
parentd6d297a0fa6c30fe1b32bf185fa11c6eb5f92f55 (diff)
cpufreq: interactive: init default values at compile time
Conflicts: drivers/cpufreq/cpufreq_interactive.c Bug 1329805 (cherry picked from commit 24942b269cc29f249b7e137f7a37c92c487e5a39) Change-Id: I6d384940d432bdfb0214d44fd8a2730f509df852 Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/254337 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index 0f76594f98ab..b1d99933397d 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -82,6 +82,7 @@ static int ntarget_loads = ARRAY_SIZE(default_target_loads);
/*
* The minimum amount of time to spend at a frequency before we can ramp down.
*/
+
#define DEFAULT_MIN_SAMPLE_TIME (30 * USEC_PER_MSEC)
static unsigned long min_sample_time = DEFAULT_MIN_SAMPLE_TIME;
@@ -96,6 +97,7 @@ static unsigned long timer_rate = DEFAULT_TIMER_RATE;
* timer interval.
*/
#define DEFAULT_ABOVE_HISPEED_DELAY DEFAULT_TIMER_RATE
+
static unsigned int default_above_hispeed_delay[] = {
DEFAULT_ABOVE_HISPEED_DELAY };
static spinlock_t above_hispeed_delay_lock;