mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
cpufreq: Fix a cpufreq cmdline parse bug, and change sample_rate unit
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
This commit is contained in:
1 parent
723c9ab167
commit
754ad39249
1 file changed
+2
-2
@@ -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 )
|
||||
{
|
||||
|
||||