summaryrefslogtreecommitdiffstats
path: root/include/linux/cpufreq.h
diff options
context:
space:
mode:
authorViresh Kumar2014-08-28 07:52:23 +0200
committerRafael J. Wysocki2014-09-09 01:44:40 +0200
commit413fffc3a1db7f270afdf1ecb35c1edc013acc68 (patch)
treeda0c4b11018381946735c7ec537d9e95db657060 /include/linux/cpufreq.h
parentcpufreq / OPP: Fix the order of arguments for kcalloc() (diff)
downloadkernel-qcow2-linux-413fffc3a1db7f270afdf1ecb35c1edc013acc68.tar.gz
kernel-qcow2-linux-413fffc3a1db7f270afdf1ecb35c1edc013acc68.tar.xz
kernel-qcow2-linux-413fffc3a1db7f270afdf1ecb35c1edc013acc68.zip
cpufreq: Add support for per-policy driver data
Drivers supporting multiple clusters or multiple 'struct cpufreq_policy' instances may need to keep per-policy data. If the core doesn't provide support for that, they might do it in the most unoptimized way: 'per-cpu' data. This patch adds another field in struct cpufreq_policy: 'driver_data'. It isn't accessed by core and is for driver's internal use only. Tested-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r--include/linux/cpufreq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 7d1955afa62c..138336b6bb04 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -112,6 +112,9 @@ struct cpufreq_policy {
spinlock_t transition_lock;
wait_queue_head_t transition_wait;
struct task_struct *transition_task; /* Task which is doing the transition */
+
+ /* For cpufreq driver's internal use */
+ void *driver_data;
};
/* Only for ACPI */