Skip to contentSkip to conversation

2.6.17-rt4 x86_64 unknown symbol monotonic_clock

PATCH Applied John Rigg 2 participants 2 messages Jun 29, 2006 – Jun 30, 2006

lore
Share & tools
lore

John Rigg

author
#0 lore raw

Hi Ingo,

I'm still getting this warning from `make modules_install':

WARNING: /lib/modules/2.6.17-rt4/kernel/drivers/char/hangcheck-timer.ko \
needs unknown symbol monotonic_clock

The patch below appears to fix it.

John

arch/x86_64/kernel/time.c +9 -0
diff -uprN linux-2.6.17-rt4/arch/x86_64/kernel/time.c linux-2.6.17-rt4-patched/arch/x86_64/kernel/time.c
@@ -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)
Applied
#1 lore raw
Quoted 7 lines · John Rigg

Hi Ingo,

I'm still getting this warning from `make modules_install':

WARNING:
/lib/modules/2.6.17-rt4/kernel/drivers/char/hangcheck-timer.ko \ needs unknown symbol monotonic_clock

oops ...

Quoted 1 line

The patch below appears to fix it.

thanks, applied.

Ingo