Messages in this thread Patch in this message | | | Date | Mon, 29 Sep 2003 10:39:12 +0200 | From | Geert Uytterhoeven <> | Subject | [PATCH 335] M68k sched_clock() |
| |
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@linux-m68k.org
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |