projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a6e19
)
Revert "cpufreq: ondemand: Don't synchronize sample rate unless mulitple cpus present"
author
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:27:06 +0000
(22:27 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:27:06 +0000
(22:27 +0800)
This reverts commit
beb070f3d41fb82c69c6dcec1293817c7c788d10
.
drivers/cpufreq/cpufreq_ondemand.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq_ondemand.c
b/drivers/cpufreq/cpufreq_ondemand.c
index 1fdbbe4d2e3de62611b841ce927a2cc09a1f62ac..8fb07103628c9d0e68ae3d2507bf3982bc7dcf49 100644
(file)
--- a/
drivers/cpufreq/cpufreq_ondemand.c
+++ b/
drivers/cpufreq/cpufreq_ondemand.c
@@
-585,9
+585,7
@@
static void do_dbs_timer(struct work_struct *work)
/* We want all CPUs to do sampling nearly on same jiffy */
int delay = usecs_to_jiffies(dbs_tuners_ins.sampling_rate);
- if (num_online_cpus() > 1)
- delay -= jiffies % delay;
-
+ delay -= jiffies % delay;
mutex_lock(&dbs_info->timer_mutex);
/* Common NORMAL_SAMPLE setup */