time: convert arch_gettimeoffset to a pointer
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / kernel / time.c
index 09be0c3c906965822d206b4268a97fbe275bc5f8..b0190b41cb336167cfe69eb316a5137c2b5d3d8b 100644 (file)
@@ -70,7 +70,7 @@ EXPORT_SYMBOL(profile_pc);
 #endif
 
 #ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
-u32 arch_gettimeoffset(void)
+static u32 arm_gettimeoffset(void)
 {
        if (system_timer->offset != NULL)
                return system_timer->offset() * 1000;
@@ -164,6 +164,10 @@ device_initcall(timer_init_syscore_ops);
 
 void __init time_init(void)
 {
+#ifdef CONFIG_ARCH_USES_GETTIMEOFFSET
+       arch_gettimeoffset = arm_gettimeoffset;
+#endif
+
        system_timer = machine_desc->timer;
        system_timer->init();
        sched_clock_postinit();