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