From: Lan Tianyu Date: Tue, 13 Aug 2013 02:05:53 +0000 (+0800) Subject: acpi-cpufreq: Use cpufreq_freq_attr_rw to define the cpb attribute X-Git-Tag: MMI-PSA29.97-13-9~13630^2~1^2~16^2~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59027d356666a2c1d576baacb98de9fb30e4c48e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Rafael J. Wysocki --- 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)