projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361c2cb
)
acpi-cpufreq: Use cpufreq_freq_attr_rw to define the cpb attribute
author
Lan Tianyu
<tianyu.lan@intel.com>
Tue, 13 Aug 2013 02:05:53 +0000
(10:05 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 14 Aug 2013 20:24:22 +0000
(22:24 +0200)
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>
drivers/cpufreq/acpi-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/acpi-cpufreq.c
b/drivers/cpufreq/acpi-cpufreq.c
index 9b5d1b1a9c036dc66454ea1e05cad89953e9f95f..a1260b4549db647336192d24b3471b6b627897af 100644
(file)
--- 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)