Commit 3dbbef1c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k sched_clock()

M68k: Add sched_clock() (introduced in 2.6.0-test6)
parent 89720bf8
......@@ -171,3 +171,12 @@ int do_settimeofday(struct timespec *tv)
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);
}
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