WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] [cpufreq] Correctly calculate load

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [cpufreq] Correctly calculate load
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2007 05:40:52 -0800
Delivery-date: Wed, 05 Dec 2007 05:43:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196769262 0
# Node ID ba918cb2cf7520604dee724dd80dad5ce4bee8a1
# Parent  705f3bfc7c2d169df617838ca2272f1102cbf8bf
[cpufreq] Correctly calculate load

The idle time of the system should be less than the wall time
of the system.  The initial implementation incorrectly set
idle time to wall time when idle time was less than wall time,
instead of when idle time was more than wall time.  Correct
this error.

Signed-off-by: Mark Langsdorf <mark.langsdorf@xxxxxxx>
---
 drivers/cpufreq/cpufreq_ondemand.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 705f3bfc7c2d -r ba918cb2cf75 drivers/cpufreq/cpufreq_ondemand.c
--- a/drivers/cpufreq/cpufreq_ondemand.c        Tue Dec 04 11:20:30 2007 +0000
+++ b/drivers/cpufreq/cpufreq_ondemand.c        Tue Dec 04 11:54:22 2007 +0000
@@ -319,7 +319,7 @@ static int dbs_calc_load(struct cpu_dbs_
                tmp_idle_msecs = tmp_idle_nsecs;
                if (tmp_wall_msecs == 0)
                        tmp_wall_msecs = 1;
-               if (tmp_idle_msecs < tmp_wall_msecs)
+               if (tmp_idle_msecs > tmp_wall_msecs)
                        tmp_idle_msecs = tmp_wall_msecs;
 
                tmp_load = (100 * (tmp_wall_msecs - tmp_idle_msecs)) /

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] [cpufreq] Correctly calculate load, Xen patchbot-linux-2.6.18-xen <=