lkml.org 
[lkml]   [2003]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.023 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site