diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-06-28 10:59:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-06-28 13:54:26 -0700 |
commit | 3d73710880afa3d61cf57b5d4eb192e812eb7e4f (patch) | |
tree | 14659273e31e976706151c98beb565eafc4be694 /include/linux/cpufreq.h | |
parent | 6ae77e6b6ae20c280df8ca78e9c9d9a8ccfe7a98 (diff) | |
download | blackbird-obmc-linux-3d73710880afa3d61cf57b5d4eb192e812eb7e4f.tar.gz blackbird-obmc-linux-3d73710880afa3d61cf57b5d4eb192e812eb7e4f.zip |
cpufreq: expose a cpufreq_quick_get_max routine
This allows drivers and other code to get the max reported CPU frequency.
Initial use is for scaling ring frequency with GPU frequency in the i915
driver.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 11be48e0d168..6216115c7789 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -324,11 +324,16 @@ static inline unsigned int cpufreq_get(unsigned int cpu) /* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ #ifdef CONFIG_CPU_FREQ unsigned int cpufreq_quick_get(unsigned int cpu); +unsigned int cpufreq_quick_get_max(unsigned int cpu); #else static inline unsigned int cpufreq_quick_get(unsigned int cpu) { return 0; } +static inline unsigned int cpufreq_quick_get_max(unsigned int cpu) +{ + return 0; +} #endif |