Re: 2.6.17-rt1 unknown symbol monotonic_clock

From: John Rigg
Date: Wed Jun 21 2006 - 09:24:03 EST


On Wed, Jun 21, 2006 at 01:06:13PM +0200, Ingo Molnar wrote:
>
> * John Rigg <lk@xxxxxxxxxxxxxxx> wrote:
>
> > Just compiled 2.6.17-rt1 on x86_64 UP system and got the following
> > message when doing `make modules_install':
> > WARNING: /lib/modules/2.6.17-rt1/kernel/drivers/char/hangcheck-timer.ko \
> > needs unknown symbol monotonic_clock
>
> please try -rt2 - does it work any better?

I'd try it if I could find it :)

In the meantime I tried the patch below (don't know if it's correct but it works
so far).

John

____________________________________________________________________

diff -uprN linux-2.6.17.orig/arch/x86_64/kernel/time.c linux-2.6.17/arch/x86_64/kernel/time.c
--- linux-2.6.17.orig/arch/x86_64/kernel/time.c 2006-06-21 14:29:09.000000000 +0100
+++ linux-2.6.17/arch/x86_64/kernel/time.c 2006-06-21 14:30:56.000000000 +0100
@@ -247,6 +247,15 @@ unsigned long long sched_clock(void)
return cycles_2_ns(a);
}

+/*
+ * Monotonic_clock - returns # of nanoseconds passed since time_init()
+ */
+unsigned long long monotonic_clock(void)
+{
+ return sched_clock();
+}
+EXPORT_SYMBOL(monotonic_clock);
+
static int tsc_unstable;

static inline int check_tsc_unstable(void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/