summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/acpi-cpufreq.c
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2013-08-13 10:05:53 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-14 22:24:22 +0200
commit59027d356666a2c1d576baacb98de9fb30e4c48e (patch)
tree154a3a09ae2f90118eb0471a4bce3a252808b20e /drivers/cpufreq/acpi-cpufreq.c
parent361c2cb54a5614941f5898880a4085d31da9872b (diff)
downloadlwn-59027d356666a2c1d576baacb98de9fb30e4c48e.tar.gz
lwn-59027d356666a2c1d576baacb98de9fb30e4c48e.zip
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.c2
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)
return sprintf(buf, "%u\n", boost_enabled);
}
-static struct freq_attr cpb = __ATTR(cpb, 0644, show_cpb, store_cpb);
+cpufreq_freq_attr_rw(cpb);
#endif
static int check_est_cpu(unsigned int cpuid)