diff options
author | ume <ume@FreeBSD.org> | 2005-08-18 16:08:56 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-08-18 16:08:56 +0000 |
commit | 57562e06189e2138c901b6b57b5bbf448c3f1750 (patch) | |
tree | 11b43fee78b6e5506f369a19596be24d002982e0 /sys/kern | |
parent | 4153589b7de87c904680e407a6bddab742fdddcb (diff) | |
download | FreeBSD-src-57562e06189e2138c901b6b57b5bbf448c3f1750.zip FreeBSD-src-57562e06189e2138c901b6b57b5bbf448c3f1750.tar.gz |
don't forget to update curr_priority. even when frequency is
not changed, priority may be changed.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c index d619ec8..e75092f 100644 --- a/sys/kern/kern_cpu.c +++ b/sys/kern/kern_cpu.c @@ -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; } |