* [PATCH] ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute
@ 2013-08-13 2:05 tianyu.lan
2013-08-13 11:38 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: tianyu.lan @ 2013-08-13 2:05 UTC (permalink / raw)
To: rjw, lenb; +Cc: Lan Tianyu, cpufreq, linux-acpi
From: Lan Tianyu <tianyu.lan@intel.com>
Standardise the defintion of attribute cpb in the acpi-cpufreq driver
via cpufreq_freq_attr_rw macro.
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
drivers/cpufreq/acpi-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index e673670..414ee4d 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)
--
1.8.4.rc0.1.g8f6a3e5.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute
2013-08-13 2:05 [PATCH] ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute tianyu.lan
@ 2013-08-13 11:38 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-08-13 11:38 UTC (permalink / raw)
To: tianyu.lan; +Cc: lenb, cpufreq, linux-acpi
On Tuesday, August 13, 2013 10:05:53 AM tianyu.lan@intel.com wrote:
> From: Lan Tianyu <tianyu.lan@intel.com>
>
> Standardise the defintion of attribute cpb in the acpi-cpufreq driver
> via cpufreq_freq_attr_rw macro.
>
> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Queued up for 3.12.
Thanks,
Rafael
> ---
> drivers/cpufreq/acpi-cpufreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
> index e673670..414ee4d 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)
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-13 11:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 2:05 [PATCH] ACPI/Cpureq: Using cpufreq_freq_attr_rw macro to define CPB(Core Performance Boost) attribute tianyu.lan
2013-08-13 11:38 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox