Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59210
b: refs/heads/master
c: 0af99b1
h: refs/heads/master
v: v3
  • Loading branch information
Venki Pallipadi authored and Dave Jones committed Jun 21, 2007
1 parent 676a48c commit 4df17b2
Show file tree
Hide file tree
Showing 2 changed files with 4 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: c7f652e0487a35c16f6cd72707232b6a28647a10
refs/heads/master: 0af99b13c9f323e658b4f1d69a1ccae7d6f3f80a
5 changes: 3 additions & 2 deletions trunk/drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static struct attribute_group dbs_attr_group = {
static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info)
{
unsigned int idle_ticks, total_ticks;
unsigned int load;
unsigned int load = 0;
cputime64_t cur_jiffies;

struct cpufreq_policy *policy;
Expand Down Expand Up @@ -370,7 +370,8 @@ static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info)
if (tmp_idle_ticks < idle_ticks)
idle_ticks = tmp_idle_ticks;
}
load = (100 * (total_ticks - idle_ticks)) / total_ticks;
if (likely(total_ticks > idle_ticks))
load = (100 * (total_ticks - idle_ticks)) / total_ticks;

/* Check for frequency increase */
if (load > dbs_tuners_ins.up_threshold) {
Expand Down

0 comments on commit 4df17b2

Please sign in to comment.