From: Keir Fraser Date: Mon, 29 Dec 2008 13:37:46 +0000 (+0000) Subject: cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14019^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=754ad39249cd9ba3bb52dd89bd821ae910b36087;p=xen.git cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit Signed-off-by: Liu Jinsong --- 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 ) {