ia64/xen-unstable

changeset 18961:4035ea96ae2f

cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit

Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 29 13:37:46 2008 +0000 (2008-12-29)
parents 0af9fbf3f053
children 65cc537fbbf8
files xen/drivers/cpufreq/cpufreq_ondemand.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c	Mon Dec 29 13:32:32 2008 +0000
     1.2 +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c	Mon Dec 29 13:37:46 2008 +0000
     1.3 @@ -307,11 +307,11 @@ void __init cpufreq_cmdline_parse(char *
     1.4              *end++ = '\0';
     1.5          val = strchr(str, '=');
     1.6          if ( val )
     1.7 -            *val = '\0';
     1.8 +            *val++ = '\0';
     1.9  
    1.10          if ( !strcmp(str, "rate") && val )
    1.11          {
    1.12 -            usr_sampling_rate = simple_strtoull(val, NULL, 0);
    1.13 +            usr_sampling_rate = simple_strtoull(val, NULL, 0) * MICROSECS(1);
    1.14          }
    1.15          else if ( !strcmp(str, "threshold") && val )
    1.16          {