2010-08-07 17:37:28

by Namhyung Kim

[permalink] [raw]
Subject: [PATCH] [CPUFREQ] add missing __percpu markup in pcc-cpufreq.c

pcc_cpu_info is a percpu pointer but was missing __percpu markup.
Add it.

Signed-off-by: Namhyung Kim <[email protected]>
---
arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
index a36de5b..994230d 100644
--- a/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
+++ b/arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
@@ -110,7 +110,7 @@ struct pcc_cpu {
u32 output_offset;
};

-static struct pcc_cpu *pcc_cpu_info;
+static struct pcc_cpu __percpu *pcc_cpu_info;

static int pcc_cpufreq_verify(struct cpufreq_policy *policy)
{
--
1.7.0.4


2010-08-07 19:36:12

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] [CPUFREQ] add missing __percpu markup in pcc-cpufreq.c

On 08/07/2010 07:37 PM, Namhyung Kim wrote:
> pcc_cpu_info is a percpu pointer but was missing __percpu markup.
> Add it.
>
> Signed-off-by: Namhyung Kim <[email protected]>

Acked-by: Tejun Heo <[email protected]>

--
tejun