From: John Rigg <lk@sound-man.co.uk>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.17-rt1 unknown symbol monotonic_clock
Date: Wed, 21 Jun 2006 14:42:36 +0100 [thread overview]
Message-ID: <20060621134236.GA3409@localhost.localdomain> (raw)
In-Reply-To: <20060621110613.GA22322@elte.hu>
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)
prev parent reply other threads:[~2006-06-21 13:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060621134236.GA3409@localhost.localdomain \
--to=lk@sound-man.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.