aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-11-09 16:56:18 -0800
committerTodd Poynor <toddpoynor@google.com>2011-11-10 16:05:50 -0800
commit5113cb1203f6f463557d45baa17a6e826adc48aa (patch)
tree344af95108ee62567de1c4554930d957c15ab42e /drivers/cpufreq
parent96cd2509c44a74039022ce6de382bcec5267331d (diff)
downloadkernel_samsung_tuna-5113cb1203f6f463557d45baa17a6e826adc48aa.zip
kernel_samsung_tuna-5113cb1203f6f463557d45baa17a6e826adc48aa.tar.gz
kernel_samsung_tuna-5113cb1203f6f463557d45baa17a6e826adc48aa.tar.bz2
cpufreq: interactive governor: default 20ms timer
Change-Id: Ie9952f07b38667f2932474090044195c57976faa Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index 859fdc1..45266d5 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -22,6 +22,7 @@
#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/tick.h>
+#include <linux/time.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
#include <linux/kthread.h>
@@ -68,13 +69,13 @@ static unsigned long go_hispeed_load;
/*
* The minimum amount of time to spend at a frequency before we can ramp down.
*/
-#define DEFAULT_MIN_SAMPLE_TIME 20000;
+#define DEFAULT_MIN_SAMPLE_TIME 20 * USEC_PER_MSEC
static unsigned long min_sample_time;
/*
* The sample rate of the timer used to increase frequency
*/
-#define DEFAULT_TIMER_RATE 10000;
+#define DEFAULT_TIMER_RATE 20 * USEC_PER_MSEC
static unsigned long timer_rate;
static int cpufreq_governor_interactive(struct cpufreq_policy *policy,