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] [xen-unstable] cpufreq: Fix a cpufreq cmdline parse bug,

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Jan 2009 06:57:09 -0800
Delivery-date: Thu, 08 Jan 2009 06:57:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1230557866 0
# Node ID 4035ea96ae2fafba7a5a4c1e810aa7d591758e8c
# Parent  0af9fbf3f05306d4972cf05e4b6d7be2199a41cb
cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit

Signed-off-by: Liu Jinsong <jinsong.liu@xxxxxxxxx>
---
 xen/drivers/cpufreq/cpufreq_ondemand.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 0af9fbf3f053 -r 4035ea96ae2f xen/drivers/cpufreq/cpufreq_ondemand.c
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c    Mon Dec 29 13:32:32 2008 +0000
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c    Mon Dec 29 13:37:46 2008 +0000
@@ -307,11 +307,11 @@ void __init cpufreq_cmdline_parse(char *
             *end++ = '\0';
         val = strchr(str, '=');
         if ( val )
-            *val = '\0';
+            *val++ = '\0';
 
         if ( !strcmp(str, "rate") && val )
         {
-            usr_sampling_rate = simple_strtoull(val, NULL, 0);
+            usr_sampling_rate = simple_strtoull(val, NULL, 0) * MICROSECS(1);
         }
         else if ( !strcmp(str, "threshold") && val )
         {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit, Xen patchbot-unstable <=