|
@@ -437,7 +437,7 @@ static struct cpufreq_governor *__find_governor(const char *str_governor)
|
|
|
struct cpufreq_governor *t;
|
|
|
|
|
|
list_for_each_entry(t, &cpufreq_governor_list, governor_list)
|
|
|
- if (!strnicmp(str_governor, t->name, CPUFREQ_NAME_LEN))
|
|
|
+ if (!strncasecmp(str_governor, t->name, CPUFREQ_NAME_LEN))
|
|
|
return t;
|
|
|
|
|
|
return NULL;
|
|
@@ -455,10 +455,10 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy,
|
|
|
goto out;
|
|
|
|
|
|
if (cpufreq_driver->setpolicy) {
|
|
|
- if (!strnicmp(str_governor, "performance", CPUFREQ_NAME_LEN)) {
|
|
|
+ if (!strncasecmp(str_governor, "performance", CPUFREQ_NAME_LEN)) {
|
|
|
*policy = CPUFREQ_POLICY_PERFORMANCE;
|
|
|
err = 0;
|
|
|
- } else if (!strnicmp(str_governor, "powersave",
|
|
|
+ } else if (!strncasecmp(str_governor, "powersave",
|
|
|
CPUFREQ_NAME_LEN)) {
|
|
|
*policy = CPUFREQ_POLICY_POWERSAVE;
|
|
|
err = 0;
|