aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/cpufreq
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-29 13:37:46 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-29 13:37:46 +0000
commit754ad39249cd9ba3bb52dd89bd821ae910b36087 (patch)
tree25de8642e9578410137d7b67f81ed50a7ab4a051 /xen/drivers/cpufreq
parent723c9ab1672104e9eed440b4204d7a195858b4e4 (diff)
downloadxen-754ad39249cd9ba3bb52dd89bd821ae910b36087.tar.gz
xen-754ad39249cd9ba3bb52dd89bd821ae910b36087.tar.bz2
xen-754ad39249cd9ba3bb52dd89bd821ae910b36087.zip
cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Diffstat (limited to 'xen/drivers/cpufreq')
-rw-r--r--xen/drivers/cpufreq/cpufreq_ondemand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c
index f5017beda6..55c005932d 100644
--- a/xen/drivers/cpufreq/cpufreq_ondemand.c
+++ b/xen/drivers/cpufreq/cpufreq_ondemand.c
@@ -307,11 +307,11 @@ void __init cpufreq_cmdline_parse(char *str)
*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 )
{