summaryrefslogtreecommitdiff
path: root/common/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/timer.c')
-rw-r--r--common/timer.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/common/timer.c b/common/timer.c
index 7ed3af25bf..ef960b0627 100644
--- a/common/timer.c
+++ b/common/timer.c
@@ -17,16 +17,8 @@
#define TIMER_SYSJUMP_TAG 0x4d54 /* "TM" */
-/*
- * High word of the 64-bit timestamp counter. Not used if
- * CONFIG_HWTIMER_64BIT is enabled.
- */
-#ifdef CONFIG_HWTIMER_64BIT
-/* Declaring as extern will cause linker errors if used */
-extern uint32_t clksrc_high;
-#else
-static volatile uint32_t clksrc_high;
-#endif /* CONFIG_HWTIMER_64BIT */
+/* High 32-bits of the 64-bit timestamp counter. */
+STATIC_IF_NOT(CONFIG_HWTIMER_64BIT) uint32_t clksrc_high;
/* Bitmap of currently running timers */
static uint32_t timer_running;