Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 7 Aug 2003 14:03:10 -0700 | From | Andrew Morton <> | Subject | Re: 2.6.0-test2-mm5 x86-64 link errors |
| |
Patrick McLean <pmclean@cs.ubishops.ca> wrote: > > I get to play with an opteron for a bit, so I'm going to try 2.6 on it, > but test2-mm5 seems to compile fine, but when it goes to link it, it > gives these errors: > > LD init/built-in.o > LD .tmp_vmlinux1 > kernel/built-in.o(.text+0x359): In function `try_to_wake_up': > : undefined reference to `sched_clock'
Ingo's scheduler patch requires that the architecture provide a sched_clock() function which returns nanoseconds. We only have ia32, ia64, ppc and ppc64 versions thus far.
A lame version is to just add
unsigned long long sched_clock(void) { return (unsigned long long)jiffies * (1000000000 / HZ); }
to arch/<foo>/kernel/timer.c
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |