]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/kernel/vdso64/datapage.S
[PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel
[karo-tx-linux.git] / arch / powerpc / kernel / vdso64 / datapage.S
similarity index 84%
rename from arch/ppc64/kernel/vdso64/datapage.S
rename to arch/powerpc/kernel/vdso64/datapage.S
index ed6e599ae8242a6a8ad992d0492a15a4cc3b8a1e..e67eda0f8cdab01aa38322300c3f014a32ff76e8 100644 (file)
@@ -66,3 +66,19 @@ V_FUNCTION_BEGIN(__kernel_get_syscall_map)
        blr
   .cfi_endproc
 V_FUNCTION_END(__kernel_get_syscall_map)
+
+
+/*
+ * void unsigned long  __kernel_get_tbfreq(void);
+ *
+ * returns the timebase frequency in HZ
+ */
+V_FUNCTION_BEGIN(__kernel_get_tbfreq)
+  .cfi_startproc
+       mflr    r12
+  .cfi_register lr,r12
+       bl      V_LOCAL_FUNC(__get_datapage)
+       ld      r3,CFG_TB_TICKS_PER_SEC(r3)
+       mtlr    r12
+  .cfi_endproc
+V_FUNCTION_END(__kernel_get_tbfreq)