diff options
author | Stratos Karafotis | 2014-06-30 18:59:33 +0200 |
---|---|---|
committer | Rafael J. Wysocki | 2014-07-21 13:43:19 +0200 |
commit | 5b0c0b16d48d20e26859907df4dd449e3b3c7f4c (patch) | |
tree | 39a03f932232701615350efba56302928362f634 /include/linux/cpufreq.h | |
parent | cpufreq: imx6: remove pu regulator dependency for SOCs with no PU regulator (diff) | |
download | kernel-qcow2-linux-5b0c0b16d48d20e26859907df4dd449e3b3c7f4c.tar.gz kernel-qcow2-linux-5b0c0b16d48d20e26859907df4dd449e3b3c7f4c.tar.xz kernel-qcow2-linux-5b0c0b16d48d20e26859907df4dd449e3b3c7f4c.zip |
cpufreq: Introduce new relation for freq selection
Introduce CPUFREQ_RELATION_C for frequency selection.
It selects the frequency with the minimum euclidean distance to target.
In case of equal distance between 2 frequencies, it will select the
greater frequency.
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 8f8ae95c6e27..7d1955afa62c 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -176,6 +176,7 @@ static inline void disable_cpufreq(void) { } #define CPUFREQ_RELATION_L 0 /* lowest frequency at or above target */ #define CPUFREQ_RELATION_H 1 /* highest frequency below or at target */ +#define CPUFREQ_RELATION_C 2 /* closest frequency to target */ struct freq_attr { struct attribute attr; |