Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202527
b: refs/heads/master
c: a665df9
h: refs/heads/master
i:
  202525: ff99abe
  202523: 84ef834
  202519: b62cd6e
  202511: 5f9bd8e
  202495: f7e0dc1
v: v3
  • Loading branch information
Jocelyn Falempe authored and Dave Jones committed Aug 3, 2010
1 parent 0f2fd4a commit 98d2876
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 226528c6100e4191842e61997110c8ace40605f7
refs/heads/master: a665df9d510bfd5bac5664f436411f921471264a
8 changes: 6 additions & 2 deletions trunk/drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ 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);

delay -= jiffies % delay;
if (num_online_cpus() > 1)
delay -= jiffies % delay;

mutex_lock(&dbs_info->timer_mutex);

/* Common NORMAL_SAMPLE setup */
Expand All @@ -634,7 +636,9 @@ static inline void dbs_timer_init(struct cpu_dbs_info_s *dbs_info)
{
/* We want all CPUs to do sampling nearly on same jiffy */
int delay = usecs_to_jiffies(dbs_tuners_ins.sampling_rate);
delay -= jiffies % delay;

if (num_online_cpus() > 1)
delay -= jiffies % delay;

dbs_info->sample_type = DBS_NORMAL_SAMPLE;
INIT_DELAYED_WORK_DEFERRABLE(&dbs_info->work, do_dbs_timer);
Expand Down

0 comments on commit 98d2876

Please sign in to comment.