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:
Keir Fraser committed 2008-12-29 13:37:46 +00:00
1 parent 723c9ab167
commit 754ad39249
1 file changed
+2 -2
+2 -2
View File
@@ -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 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.