Skip to content

Commit

Permalink
Update Barry Allen 0.9
Browse files Browse the repository at this point in the history
Fix for revert (add calculate load before freq change)

The update to cpu load for cpufreq rate changes was happening after the rate
change instead of before. This switches it to update the cpu load before the
cpufreq rate change so the old frequency is used for calculating the speed
adjusted cpu load. The old frequency was used for that active time, so it should
be used for calculating the speed adjusted cpu load.

Signed-off-by: Javier Sayago <admin@lonasdigital.com>
  • Loading branch information
javilonas committed Jun 3, 2015
1 parent fcc7a0d commit d3af89f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/cpufreq_barry_allen.c
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2010 Google, Inc.
* Copyright (C) 2015 Javier Sayago <admin@lonasdigital.com>
*
* Barry_Allen Version 0.8
* Barry_Allen Version 0.9
* Last Update >> 04-06-2015
*
* This software is licensed under the terms of the GNU General Public
Expand Down Expand Up @@ -713,7 +713,7 @@ static int cpufreq_barry_allen_notifier(
int cpu;
unsigned long flags;

if (val == CPUFREQ_POSTCHANGE) {
if (val == CPUFREQ_PRECHANGE) {
pcpu = &per_cpu(cpuinfo, freq->cpu);
if (!down_read_trylock(&pcpu->enable_sem))
return 0;
Expand Down

0 comments on commit d3af89f

Please sign in to comment.