Define TSC arch_init() for PPC and IA64
authorJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2012 07:36:35 +0000 (08:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2012 07:36:35 +0000 (08:36 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arch-ia64.h
arch/arch-ppc.h

index f4464c48b2fa146b6386d8c49cab5179f7484692..8ccbd865e01513eeaf7ace812a58d5ca8ea7245c 100644 (file)
@@ -42,6 +42,13 @@ static inline unsigned long get_cpu_clock(void)
        return ret;
 }
 
+#define ARCH_HAVE_INIT
+extern int tsc_reliable;
+static inline int arch_init(char *envp[])
+{
+       tsc_reliable = 1;
+}
+
 #define ARCH_HAVE_FFZ
 #define ARCH_HAVE_CPU_CLOCK
 
index b790a55e898163cfc317c860403577f8b8bebb6c..0f2037550da32f85041ed2a720878fdbcd1fa383 100644 (file)
@@ -58,6 +58,13 @@ static inline unsigned long long get_cpu_clock(void)
        return ret;
 }
 
+#define ARCH_HAVE_INIT
+extern int tsc_reliable;
+static inline int arch_init(char *envp[])
+{
+       tsc_reliable = 1;
+}
+
 #define ARCH_HAVE_FFZ
 #define ARCH_HAVE_CPU_CLOCK