From 628e7393683407abd7ecd521dae91c26bd5447d1 Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Tue, 14 Apr 2015 08:18:27 +0200 Subject: LEON3: clock irq always same as timer instance The leon.h already contains the definition of LEON3_CLOCK_INDEX and irq must always follow that when separate IRQ is supported by the HW. The definitions are resued from leon.h. --- c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c index 227b7c0fbc..858027006a 100644 --- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c +++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c @@ -82,16 +82,7 @@ static void leon3_clock_profiling_interrupt_delay(void) leon3_clock_profiling_interrupt_delay(); \ } while (0) -#if defined(RTEMS_MULTIPROCESSING) - #define Adjust_clkirq_for_node() \ - do { \ - if (rtems_configuration_get_user_multiprocessing_table() != NULL) { \ - clkirq += LEON3_Cpu_Index; \ - } \ - } while(0) -#else - #define Adjust_clkirq_for_node() do { clkirq += LEON3_CLOCK_INDEX; } while(0) -#endif +#define Adjust_clkirq_for_node() do { clkirq += LEON3_CLOCK_INDEX; } while(0) #define Clock_driver_support_find_timer() \ do { \ -- cgit v1.2.3