summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-aspeed/timer.c')
-rw-r--r--arch/arm/mach-aspeed/timer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-aspeed/timer.c b/arch/arm/mach-aspeed/timer.c
index 626f992429..d4a85116e8 100644
--- a/arch/arm/mach-aspeed/timer.c
+++ b/arch/arm/mach-aspeed/timer.c
@@ -31,8 +31,10 @@
#define READ_CLK (*(volatile ulong *)(AST_TIMER_BASE + 0))
#define READ_TIMER (READ_CLK / CLK_PER_HZ)
-static ulong timestamp;
-static ulong lastdec;
+DECLARE_GLOBAL_DATA_PTR;
+
+#define timestamp gd->arch.tbl
+#define lastdec gd->arch.lastinc
int timer_init (void)
{
OpenPOWER on IntegriCloud