Commit 206cdfbd authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ia64 sched_clock() implementation.

From David M-T.
parent efe775ab
...@@ -39,6 +39,14 @@ unsigned long last_cli_ip; ...@@ -39,6 +39,14 @@ unsigned long last_cli_ip;
#endif #endif
unsigned long long
sched_clock (void)
{
unsigned long offset = ia64_get_itc();
return (offset * local_cpu_data->nsec_per_cyc) >> IA64_NSEC_PER_CYC_SHIFT;
}
static void static void
itc_reset (void) itc_reset (void)
{ {
......
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