* 2.6.17-rt1 unknown symbol monotonic_clock
@ 2006-06-21 10:06 John Rigg
2006-06-21 10:10 ` Michal Piotrowski
2006-06-21 11:06 ` Ingo Molnar
0 siblings, 2 replies; 4+ messages in thread
From: John Rigg @ 2006-06-21 10:06 UTC (permalink / raw)
To: linux-kernel; +Cc: Ingo Molnar
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
John
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.17-rt1 unknown symbol monotonic_clock
2006-06-21 10:06 2.6.17-rt1 unknown symbol monotonic_clock John Rigg
@ 2006-06-21 10:10 ` Michal Piotrowski
2006-06-21 11:06 ` Ingo Molnar
1 sibling, 0 replies; 4+ messages in thread
From: Michal Piotrowski @ 2006-06-21 10:10 UTC (permalink / raw)
To: John Rigg; +Cc: linux-kernel, Ingo Molnar
Hi John,
John Rigg napisał(a):
> 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 this patch
diff -uprN -X linux-work/Documentation/dontdiff linux-work-clean/drivers/char/hangcheck-timer.c linux-work/drivers/char/hangcheck-timer.c
--- linux-work-clean/drivers/char/hangcheck-timer.c 2006-06-19 21:04:36.000000000 +0200
+++ linux-work/drivers/char/hangcheck-timer.c 2006-06-19 21:08:49.000000000 +0200
@@ -133,6 +133,8 @@ static inline unsigned long long monoton
{
return get_cycles();
}
+
+EXPORT_SYMBOL(monotonic_clock);
#endif /* HAVE_MONOTONIC */
>
> John
Regards,
Michal
--
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.6.17-rt1 unknown symbol monotonic_clock
2006-06-21 10:06 2.6.17-rt1 unknown symbol monotonic_clock John Rigg
2006-06-21 10:10 ` Michal Piotrowski
@ 2006-06-21 11:06 ` Ingo Molnar
2006-06-21 13:42 ` John Rigg
1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2006-06-21 11:06 UTC (permalink / raw)
To: John Rigg; +Cc: linux-kernel
* John Rigg <lk@sound-man.co.uk> 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?
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.17-rt1 unknown symbol monotonic_clock
2006-06-21 11:06 ` Ingo Molnar
@ 2006-06-21 13:42 ` John Rigg
0 siblings, 0 replies; 4+ messages in thread
From: John Rigg @ 2006-06-21 13:42 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel
On Wed, Jun 21, 2006 at 01:06:13PM +0200, Ingo Molnar wrote:
>
> * John Rigg <lk@sound-man.co.uk> 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)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-21 13:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21 10:06 2.6.17-rt1 unknown symbol monotonic_clock John Rigg
2006-06-21 10:10 ` Michal Piotrowski
2006-06-21 11:06 ` Ingo Molnar
2006-06-21 13:42 ` John Rigg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox