* [PATCH 335] M68k sched_clock()
@ 2003-09-29 8:39 Geert Uytterhoeven
0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2003-09-29 8:39 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton
Cc: Linux Kernel Development, Geert Uytterhoeven
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-29 8:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-29 8:39 [PATCH 335] M68k sched_clock() Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®