don't forget to update curr_priority. even when frequency is

not changed, priority may be changed.
This commit is contained in:
Hajimu UMEMOTO 2005-08-18 16:08:56 +00:00
parent 7bdc0bba0b
commit 5f36393468

View File

@ -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;
}