]> git.hungrycats.org Git - linux/commit
[CPUFREQ] Fix 'out of sync' issue.
authorDave Jones <davej@redhat.com>
Fri, 7 May 2004 16:11:44 +0000 (17:11 +0100)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Fri, 7 May 2004 16:11:44 +0000 (17:11 +0100)
commit6a4a93f9c0d51b5f4ac1bd3efab53e43584330dd
tree383903f8fcb41e21fb90d5ea00ef2ac14e40e2cd
parent98525f6faf75f24856895d6925b649b14dfd25b0
[CPUFREQ] Fix 'out of sync' issue.
Sometimes we might discover during a call to cpufreq_get() that we're "out of sync",
meaning the actual CPU frequency changed "behind our back". If this happens, the flag
CPUFREQ_PANIC_OUTOFSYNC decides what can be done: if it is set, the kernel panic's,
it it is not set, the cpufreq transition notifiers are informed of this change, and
a call to cpufreq_update_policy() is scheduled [using the default workqueue] so that
the user-defined values override BIOS / external interaction.
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h