diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2013-08-12 22:05:53 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-14 16:24:22 -0400 |
commit | 59027d356666a2c1d576baacb98de9fb30e4c48e (patch) | |
tree | 154a3a09ae2f90118eb0471a4bce3a252808b20e /drivers/cpufreq/acpi-cpufreq.c | |
parent | 361c2cb54a5614941f5898880a4085d31da9872b (diff) |
acpi-cpufreq: Use cpufreq_freq_attr_rw to define the cpb attribute
Standardise the defintion of the cpb (Core Performance Boost)
attribute in the acpi-cpufreq driver via the cpufreq_freq_attr_rw
macro.
[rjw: Subject and changelog]
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/acpi-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/acpi-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 9b5d1b1a9c03..a1260b4549db 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c | |||
@@ -197,7 +197,7 @@ static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) | |||
197 | return sprintf(buf, "%u\n", boost_enabled); | 197 | return sprintf(buf, "%u\n", boost_enabled); |
198 | } | 198 | } |
199 | 199 | ||
200 | static struct freq_attr cpb = __ATTR(cpb, 0644, show_cpb, store_cpb); | 200 | cpufreq_freq_attr_rw(cpb); |
201 | #endif | 201 | #endif |
202 | 202 | ||
203 | static int check_est_cpu(unsigned int cpuid) | 203 | static int check_est_cpu(unsigned int cpuid) |