ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute
Subsystems (2)
PATCH 1/1 ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute
From: Lan Tianyu <[email protected]>
Standardise the defintion of attribute cpb in the acpi-cpufreq driver via cpufreq_freq_attr_rw macro.
Signed-off-by Lan Tianyu <[email protected]>
--- drivers/cpufreq/acpi-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/acpi-cpufreq.c +1 -1
@@ -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)
Signature · 1 line
1.8.4.rc0.1.g8f6a3e5.dirty
Quoted 6 lines · On Tuesday, August 13, 2013 10:05:53 AM [email protected] wrote:
From: Lan Tianyu <[email protected]>
Standardise the defintion of attribute cpb in the acpi-cpufreq driver via
cpufreq_freq_attr_rwmacro.Signed-off-by Lan Tianyu <[email protected]>
Queued up for 3.12.
Thanks,
Rafael
Quoted 18 lines
--- drivers/cpufreq/acpi-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/acpi-cpufreq.c +1
-1@@ -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)
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.