Skip to contentSkip to conversation

ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute

PATCH In review [email protected] 2 participants 2 messages Aug 13, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/cpufreq/acpi-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/acpi-cpufreq.c +1 -1
index e673670..414ee4d 100644
@@ -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
#1 lore raw
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_rw macro.

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
index e673670..414ee4d 100644
@@ -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.