Commit ef34cc34 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by Thomas Gleixner

x86/numachip: Fix timer build conflict

Fix Numachip build conflict from:
ce2e572c x86/numachip: Introduce Numachip2 timer mechanisms

drivers/built-in.o:(.discard+0x1b): multiple definition of `__pcpu_unique_cpu_ced'
arch/x86/built-in.o:(.discard+0xa0da): first defined here

Ensure cpu_ced is unique by prefixing with 'numachip2'.
Signed-off-by: default avatarDaniel J Blueman <daniel@numascale.com>
Cc: <tipbuild@zytor.com>
Cc: <kbuild-all@01.org>
Cc: Steffen Persvold <sp@numascale.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ce2e572c
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/numachip/numachip.h> #include <asm/numachip/numachip.h>
#include <asm/numachip/numachip_csr.h> #include <asm/numachip/numachip_csr.h>
static DEFINE_PER_CPU(struct clock_event_device, cpu_ced); static DEFINE_PER_CPU(struct clock_event_device, numachip2_ced);
static cycles_t numachip2_timer_read(struct clocksource *cs) static cycles_t numachip2_timer_read(struct clocksource *cs)
{ {
...@@ -56,7 +56,7 @@ static struct clock_event_device numachip2_clockevent = { ...@@ -56,7 +56,7 @@ static struct clock_event_device numachip2_clockevent = {
static void numachip_timer_interrupt(void) static void numachip_timer_interrupt(void)
{ {
struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced);
ced->event_handler(ced); ced->event_handler(ced);
} }
...@@ -64,7 +64,7 @@ static void numachip_timer_interrupt(void) ...@@ -64,7 +64,7 @@ static void numachip_timer_interrupt(void)
static __init void numachip_timer_each(struct work_struct *work) static __init void numachip_timer_each(struct work_struct *work)
{ {
unsigned local_apicid = __this_cpu_read(x86_cpu_to_apicid) & 0xff; unsigned local_apicid = __this_cpu_read(x86_cpu_to_apicid) & 0xff;
struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced);
/* Setup IPI vector to local core and relative timing mode */ /* Setup IPI vector to local core and relative timing mode */
numachip2_write64_lcsr(NUMACHIP2_TIMER_INT + numachip2_timer(), numachip2_write64_lcsr(NUMACHIP2_TIMER_INT + numachip2_timer(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment