Ingo's CPU scheduler update (in -mm kernels) needs a new sched_clock()
function which returns nanoseconds.

Stupid implementation which only gets it right on 1GHz CPUs.

I assume.  It's an undocumented miasma down there and if they can't be
bothered describing it then I can't be bothered decrypting it.  So there.



 arch/ppc64/kernel/time.c |    9 +++++++++
 1 files changed, 9 insertions(+)

diff -puN arch/ppc64/kernel/time.c~ppc64-sched_clock arch/ppc64/kernel/time.c
--- 25/arch/ppc64/kernel/time.c~ppc64-sched_clock	2003-08-05 12:19:25.000000000 -0700
+++ 25-akpm/arch/ppc64/kernel/time.c	2003-08-05 12:19:25.000000000 -0700
@@ -307,6 +307,15 @@ int timer_interrupt(struct pt_regs * reg
 	return 1;
 }
 
+/*
+ * Scheduler clock - returns current time in nanosec units.
+ *
+ * This is wrong, but my CPUs run at 1GHz, so nyer nyer.
+ */
+unsigned long long sched_clock(void)
+{
+	return get_tb();
+}
 
 /*
  * This version of gettimeofday has microsecond resolution.

_