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 ) {