percpu: make percpu symbols in powerpc unique
This patch updates percpu related symbols in powerpc such that percpu symbols are unique and don't clash with local symbols. This serves two purposes of decreasing the possibility of global percpu symbol collision and allowing dropping per_cpu__ prefix from percpu symbols. * arch/powerpc/kernel/perf_callchain.c: s/callchain/cpu_perf_callchain/ * arch/powerpc/kernel/setup-common.c: s/pvr/cpu_pvr/ * arch/powerpc/platforms/pseries/dtl.c: s/dtl/cpu_dtl/ * arch/powerpc/platforms/cell/interrupt.c: s/iic/cpu_iic/ Partly based on Rusty Russell's "alloc_percpu: rename percpu vars which cause name clashes" patch. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Paul Mackerras <paulus@samba.org> Cc: linuxppc-dev@ozlabs.org
This commit is contained in:
@@ -54,7 +54,7 @@ struct dtl {
|
||||
int buf_entries;
|
||||
u64 last_idx;
|
||||
};
|
||||
static DEFINE_PER_CPU(struct dtl, dtl);
|
||||
static DEFINE_PER_CPU(struct dtl, cpu_dtl);
|
||||
|
||||
/*
|
||||
* Dispatch trace log event mask:
|
||||
@@ -261,7 +261,7 @@ static int dtl_init(void)
|
||||
|
||||
/* set up the per-cpu log structures */
|
||||
for_each_possible_cpu(i) {
|
||||
struct dtl *dtl = &per_cpu(dtl, i);
|
||||
struct dtl *dtl = &per_cpu(cpu_dtl, i);
|
||||
dtl->cpu = i;
|
||||
|
||||
rc = dtl_setup_file(dtl);
|
||||
|
Reference in New Issue
Block a user