don't forget to update curr_priority. even when frequency is
not changed, priority may be changed.
This commit is contained in:
parent
7bdc0bba0b
commit
5f36393468
@ -260,6 +260,7 @@ cf_set_method(device_t dev, const struct cf_level *level, int priority)
|
||||
if (CPUFREQ_CMP(sc->curr_level.total_set.freq, level->total_set.freq)) {
|
||||
CF_DEBUG("skipping freq %d, same as current level %d\n",
|
||||
level->total_set.freq, sc->curr_level.total_set.freq);
|
||||
sc->curr_priority = priority;
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user