aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpufreq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r--include/linux/cpufreq.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index f10a9b3761cd..c4035964e6b3 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -562,6 +562,15 @@ struct governor_attr {
size_t count);
};
+static inline bool cpufreq_can_do_remote_dvfs(struct cpufreq_policy *policy)
+{
+ /* Allow remote callbacks only on the CPUs sharing cpufreq policy */
+ if (cpumask_test_cpu(smp_processor_id(), policy->cpus))
+ return true;
+
+ return false;
+}
+
/*********************************************************************
* FREQUENCY TABLE HELPERS *
*********************************************************************/