Commit 4eb02f5e authored by Pete Zaitcev's avatar Pete Zaitcev Committed by David S. Miller

[SPARC]: Add stub sched_clock() implementation.

parent 3c79402a
...@@ -472,6 +472,15 @@ extern __inline__ unsigned long do_gettimeoffset(void) ...@@ -472,6 +472,15 @@ extern __inline__ unsigned long do_gettimeoffset(void)
return (*master_l10_counter >> 10) & 0x1fffff; return (*master_l10_counter >> 10) & 0x1fffff;
} }
/*
* Returns nanoseconds
* XXX This is a suboptimal implementation.
*/
unsigned long long sched_clock(void)
{
return (unsigned long long)jiffies * (1000000000 / HZ);
}
/* Ok, my cute asm atomicity trick doesn't work anymore. /* Ok, my cute asm atomicity trick doesn't work anymore.
* There are just too many variables that need to be protected * There are just too many variables that need to be protected
* now (both members of xtime, wall_jiffies, et al.) * now (both members of xtime, wall_jiffies, et al.)
......
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