* [PATCH] cpufreq: acpi-cpufreq: make Intel/AMD MSR access, io port access static
@ 2016-03-22 14:34 Jisheng Zhang
2016-03-22 14:43 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Jisheng Zhang @ 2016-03-22 14:34 UTC (permalink / raw)
To: rjw, viresh.kumar; +Cc: linux-pm, linux-kernel, Jisheng Zhang
These frequency register read/write operations' implementations for the
given processor (Intel/AMD MSR access or I/O port access) are only used
internally in acpi-cpufreq, so make them static.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
drivers/cpufreq/acpi-cpufreq.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index 59a7b38..985be6e 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -245,7 +245,7 @@ static unsigned extract_freq(u32 val, struct acpi_cpufreq_data *data)
}
}
-u32 cpu_freq_read_intel(struct acpi_pct_register *not_used)
+static u32 cpu_freq_read_intel(struct acpi_pct_register *not_used)
{
u32 val, dummy;
@@ -253,7 +253,7 @@ u32 cpu_freq_read_intel(struct acpi_pct_register *not_used)
return val;
}
-void cpu_freq_write_intel(struct acpi_pct_register *not_used, u32 val)
+static void cpu_freq_write_intel(struct acpi_pct_register *not_used, u32 val)
{
u32 lo, hi;
@@ -262,7 +262,7 @@ void cpu_freq_write_intel(struct acpi_pct_register *not_used, u32 val)
wrmsr(MSR_IA32_PERF_CTL, lo, hi);
}
-u32 cpu_freq_read_amd(struct acpi_pct_register *not_used)
+static u32 cpu_freq_read_amd(struct acpi_pct_register *not_used)
{
u32 val, dummy;
@@ -270,12 +270,12 @@ u32 cpu_freq_read_amd(struct acpi_pct_register *not_used)
return val;
}
-void cpu_freq_write_amd(struct acpi_pct_register *not_used, u32 val)
+static void cpu_freq_write_amd(struct acpi_pct_register *not_used, u32 val)
{
wrmsr(MSR_AMD_PERF_CTL, val, 0);
}
-u32 cpu_freq_read_io(struct acpi_pct_register *reg)
+static u32 cpu_freq_read_io(struct acpi_pct_register *reg)
{
u32 val;
@@ -283,7 +283,7 @@ u32 cpu_freq_read_io(struct acpi_pct_register *reg)
return val;
}
-void cpu_freq_write_io(struct acpi_pct_register *reg, u32 val)
+static void cpu_freq_write_io(struct acpi_pct_register *reg, u32 val)
{
acpi_os_write_port(reg->address, val, reg->bit_width);
}
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] cpufreq: acpi-cpufreq: make Intel/AMD MSR access, io port access static
2016-03-22 14:34 [PATCH] cpufreq: acpi-cpufreq: make Intel/AMD MSR access, io port access static Jisheng Zhang
@ 2016-03-22 14:43 ` Viresh Kumar
2016-03-23 21:25 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2016-03-22 14:43 UTC (permalink / raw)
To: Jisheng Zhang; +Cc: rjw, linux-pm, linux-kernel
On 22-03-16, 22:34, Jisheng Zhang wrote:
> These frequency register read/write operations' implementations for the
> given processor (Intel/AMD MSR access or I/O port access) are only used
> internally in acpi-cpufreq, so make them static.
>
> Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> ---
> drivers/cpufreq/acpi-cpufreq.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq: acpi-cpufreq: make Intel/AMD MSR access, io port access static
2016-03-22 14:43 ` Viresh Kumar
@ 2016-03-23 21:25 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2016-03-23 21:25 UTC (permalink / raw)
To: Viresh Kumar, Jisheng Zhang; +Cc: linux-pm, linux-kernel
On Tuesday, March 22, 2016 08:13:53 PM Viresh Kumar wrote:
> On 22-03-16, 22:34, Jisheng Zhang wrote:
> > These frequency register read/write operations' implementations for the
> > given processor (Intel/AMD MSR access or I/O port access) are only used
> > internally in acpi-cpufreq, so make them static.
> >
> > Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
> > ---
> > drivers/cpufreq/acpi-cpufreq.c | 12 ++++++------
> > 1 file changed, 6 insertions(+), 6 deletions(-)
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-23 21:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 14:34 [PATCH] cpufreq: acpi-cpufreq: make Intel/AMD MSR access, io port access static Jisheng Zhang
2016-03-22 14:43 ` Viresh Kumar
2016-03-23 21:25 ` 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