From 114d9308fb03a5fc8c9807f77c4cfce3bf616488 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:40:10 -0800 Subject: [PATCH] [PATCH] sched_clock() for m68knommu architectures From: gerg@snapgear.com Implement the sched_clock() function for m68knommu architectures. --- arch/m68knommu/kernel/time.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/m68knommu/kernel/time.c b/arch/m68knommu/kernel/time.c index 01074a94a4d8b..9dcf2e97b35ba 100644 --- a/arch/m68knommu/kernel/time.c +++ b/arch/m68knommu/kernel/time.c @@ -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); -- 2.53.0