ARM/arm64: vdso: Use common vdso clock mode storage
[linux-2.6-microblaze.git] / arch / arm / include / asm / vdso / vsyscall.h
index 85a7e58..002f9ed 100644 (file)
 extern struct vdso_data *vdso_data;
 extern bool cntvct_ok;
 
-static __always_inline
-bool tk_is_cntvct(const struct timekeeper *tk)
-{
-       if (!IS_ENABLED(CONFIG_ARM_ARCH_TIMER))
-               return false;
-
-       if (!tk->tkr_mono.clock->archdata.vdso_direct)
-               return false;
-
-       return true;
-}
-
 /*
  * Update the vDSO data page to keep in sync with kernel timekeeping.
  */
@@ -40,15 +28,6 @@ bool __arm_update_vdso_data(void)
 }
 #define __arch_update_vdso_data __arm_update_vdso_data
 
-static __always_inline
-int __arm_get_clock_mode(struct timekeeper *tk)
-{
-       u32 __tk_is_cntvct = tk_is_cntvct(tk);
-
-       return __tk_is_cntvct;
-}
-#define __arch_get_clock_mode __arm_get_clock_mode
-
 static __always_inline
 void __arm_sync_vdso_data(struct vdso_data *vdata)
 {