Skip to contentSkip to conversation

Linux 2.6.0-test6

DISCUSSION Oliver Pitzeier 1 participant 1 message Sep 29, 2003

lore
Share & tools
lore
#0 lore raw

Hi Viro!

[ ... ]

Quoted 13 lines
Quoted 6 lines

It work's on my Intel machine, but on Alpha, I get this: <snip>

  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

kernel/built-in.o: In function `try_to_wake_up':
kernel/built-in.o(.text+0x438): undefined reference to `sched_clock'

Add
unsigned long long default_sched_clock(void)

{
	return (unsigned long long)jiffies * (1000000000 / HZ);
}
Quoted 7 lines

in kernel/sched.c and

#define sched_clock default_sched_clock

in include/asm-alpha/system.h

FWIW, the former should've been done from the very beginning

[ ... ]

This seems to work!

Thanks!

Best,
Oliver