aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/core.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-14 20:07:35 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 09:35:36 +0100
commitf5fc00826d1e60af0e22cb9f65b933d823a8ed84 (patch)
treebcff2df77e951dbfc0833cda47620ee3c65694ac /arch/arm/mach-realview/core.c
parent6be4826e37122b25cb10b215fc84c3a0b1fe1402 (diff)
downloadkernel_samsung_aries-f5fc00826d1e60af0e22cb9f65b933d823a8ed84.zip
kernel_samsung_aries-f5fc00826d1e60af0e22cb9f65b933d823a8ed84.tar.gz
kernel_samsung_aries-f5fc00826d1e60af0e22cb9f65b933d823a8ed84.tar.bz2
ARM: Realview/Versatile: separate out common sched_clock()
Provide a common sched_clock() implementation for Versatile and Realview. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/core.c')
-rw-r--r--arch/arm/mach-realview/core.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c
index 80b8142..f97f001 100644
--- a/arch/arm/mach-realview/core.c
+++ b/arch/arm/mach-realview/core.c
@@ -53,8 +53,6 @@
#include "core.h"
-#define REALVIEW_REFCOUNTER (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_24MHz_OFFSET)
-
/* used by entry-macro.S and platsmp.c */
void __iomem *gic_cpu_base_addr;
@@ -77,20 +75,6 @@ void __init realview_adjust_zones(int node, unsigned long *size,
}
#endif
-/*
- * This is the RealView sched_clock implementation. This has
- * a resolution of 41.7ns, and a maximum value of about 179s.
- */
-unsigned long long sched_clock(void)
-{
- unsigned long long v;
-
- v = (unsigned long long)readl(REALVIEW_REFCOUNTER) * 125;
- do_div(v, 3);
-
- return v;
-}
-
#define REALVIEW_FLASHCTRL (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_FLASH_OFFSET)