]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sched_clock() for m68knommu architectures
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:40:10 +0000 (18:40 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:40:10 +0000 (18:40 -0800)
From: gerg@snapgear.com

Implement the sched_clock() function for m68knommu architectures.

arch/m68knommu/kernel/time.c

index 01074a94a4d8bfbcf0bfcc40e36eb19da23028d2..9dcf2e97b35baaf3920e0d9dcd9a2ab060882350 100644 (file)
@@ -202,4 +202,12 @@ int do_settimeofday(struct timespec *tv)
        return 0;
 }
 
+/*
+ * Scheduler clock - returns current time in nanosec units.
+ */
+unsigned long long sched_clock(void)
+{
+       return (unsigned long long)jiffies * (1000000000 / HZ);
+}
+
 EXPORT_SYMBOL(do_settimeofday);