aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpufreq.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-02-01 01:40:02 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-02-01 19:29:32 -0500
commit62b36cc1c83aca1cd252772e82cbc5d9ef8ff25b (patch)
tree1b016a0b4efea3be2f484650bf81386f0f825449 /include/linux/cpufreq.h
parent4c738d00cf5866a0b114ceb41d736a4a803f0c46 (diff)
cpufreq: Remove unnecessary use of policy->shared_type
policy->shared_type field was added only for SoCs with ACPI support: commit 3b2d99429e3386b6e2ac949fc72486509c8bbe36 Author: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Date: Wed Dec 14 15:05:00 2005 -0500 P-state software coordination for ACPI core http://bugzilla.kernel.org/show_bug.cgi?id=5737 Many non-ACPI systems are filling this field by mistake, which makes its usage confusing. Lets clean it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> 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, 2 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 6bf3f2d12c90..a22944ca0526 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -93,7 +93,7 @@ struct cpufreq_policy {
93 cpumask_var_t cpus; /* Online CPUs only */ 93 cpumask_var_t cpus; /* Online CPUs only */
94 cpumask_var_t related_cpus; /* Online + Offline CPUs */ 94 cpumask_var_t related_cpus; /* Online + Offline CPUs */
95 95
96 unsigned int shared_type; /* ANY or ALL affected CPUs 96 unsigned int shared_type; /* ACPI: ANY or ALL affected CPUs
97 should set cpufreq */ 97 should set cpufreq */
98 unsigned int cpu; /* cpu nr of CPU managing this policy */ 98 unsigned int cpu; /* cpu nr of CPU managing this policy */
99 unsigned int last_cpu; /* cpu nr of previous CPU that managed 99 unsigned int last_cpu; /* cpu nr of previous CPU that managed
@@ -122,6 +122,7 @@ struct cpufreq_policy {
122#define CPUFREQ_START (3) 122#define CPUFREQ_START (3)
123#define CPUFREQ_UPDATE_POLICY_CPU (4) 123#define CPUFREQ_UPDATE_POLICY_CPU (4)
124 124
125/* Only for ACPI */
125#define CPUFREQ_SHARED_TYPE_NONE (0) /* None */ 126#define CPUFREQ_SHARED_TYPE_NONE (0) /* None */
126#define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */ 127#define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */
127#define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */ 128#define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */