Commit 59027d35 authored by Lan Tianyu's avatar Lan Tianyu Committed by Rafael J. Wysocki

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: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 361c2cb5
...@@ -197,7 +197,7 @@ static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf) ...@@ -197,7 +197,7 @@ static ssize_t show_cpb(struct cpufreq_policy *policy, char *buf)
return sprintf(buf, "%u\n", boost_enabled); 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 #endif
static int check_est_cpu(unsigned int cpuid) static int check_est_cpu(unsigned int cpuid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment