Commit 6a8fcaf3 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Add sched_clock on v850

This is a horrid implementation, but whatever.
parent 606aa683
...@@ -32,6 +32,14 @@ EXPORT_SYMBOL(jiffies_64); ...@@ -32,6 +32,14 @@ EXPORT_SYMBOL(jiffies_64);
#define TICK_SIZE (tick_nsec / 1000) #define TICK_SIZE (tick_nsec / 1000)
/*
* Scheduler clock - returns current time in nanosec units.
*/
unsigned long long sched_clock(void)
{
return (unsigned long long)jiffies * (1000000000 / HZ);
}
static inline void do_profile (unsigned long pc) static inline void do_profile (unsigned long pc)
{ {
if (prof_buffer && current->pid) { if (prof_buffer && current->pid) {
......
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