[PATCH 335] M68k sched_clock()

From: Geert Uytterhoeven
Date: Mon Sep 29 2003 - 03:43:40 EST


M68k: Add sched_clock() (introduced in 2.6.0-test6)

--- linux-2.6.0-test6/arch/m68k/kernel/time.c Mon Jul 14 13:15:58 2003
+++ linux-m68k-2.6.0-test6/arch/m68k/kernel/time.c Sun Sep 28 10:50:36 2003
@@ -171,3 +171,12 @@
write_sequnlock_irq(&xtime_lock);
return 0;
}
+
+/*
+ * Scheduler clock - returns current time in ns units.
+ */
+unsigned long long sched_clock(void)
+{
+ return (unsigned long long)jiffies*(1000000000/HZ);
+}
+

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/