]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/arm1136/mx31/timer.c
arm: Move tbl to arch_global_data
[people/ms/u-boot.git] / arch / arm / cpu / arm1136 / mx31 / timer.c
index 86916d1edb1c603f40039b5ab3ae8da05ef0cbc1..790bab457cb8b7b908d76ec552437bb68d278518 100644 (file)
@@ -117,11 +117,11 @@ unsigned long long get_ticks(void)
 
        if (now >= gd->lastinc) /* normal mode (non roll) */
                /* move stamp forward with absolut diff ticks */
-               gd->tbl += (now - gd->lastinc);
+               gd->arch.tbl += (now - gd->lastinc);
        else                    /* we have rollover of incrementer */
-               gd->tbl += (0xFFFFFFFF - gd->lastinc) + now;
+               gd->arch.tbl += (0xFFFFFFFF - gd->lastinc) + now;
        gd->lastinc = now;
-       return gd->tbl;
+       return gd->arch.tbl;
 }
 
 ulong get_timer_masked(void)