Commit 114d9308 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sched_clock() for m68knommu architectures

From: gerg@snapgear.com

Implement the sched_clock() function for m68knommu architectures.
parent 91d44280
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment