]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
CRIS: Add sched_clock to kernel/time.c
authorJesper Nilsson <jesper.nilsson@axis.com>
Mon, 28 Jan 2008 15:40:21 +0000 (16:40 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:37 +0000 (11:06 +0100)
Also, clean up some whitespace errors.

arch/cris/kernel/time.c

index 7a2cc7efbcf8be986601d8b5f31e646b7ff9afc9..b7ad10e3e46cb37749e74654326296db1c4dc80a 100644 (file)
@@ -1,5 +1,4 @@
-/* $Id: time.c,v 1.18 2005/03/04 08:16:17 starvik Exp $
- *
+/*
  *  linux/arch/cris/kernel/time.c
  *
  *  Copyright (C) 1991, 1992, 1995  Linus Torvalds
@@ -18,7 +17,7 @@
  * Linux/CRIS specific code:
  *
  * Authors:    Bjorn Wesen
- *             Johan Adolfsson  
+ *             Johan Adolfsson
  *
  */
 
@@ -208,10 +207,16 @@ cris_do_profile(struct pt_regs* regs)
 #endif
 
 #ifdef CONFIG_PROFILING
-        profile_tick(CPU_PROFILING);
+       profile_tick(CPU_PROFILING, regs);
 #endif
 }
 
+unsigned long long sched_clock(void)
+{
+       return (unsigned long long)jiffies * (1000000000 / HZ) +
+               get_ns_in_jiffie();
+}
+
 static int
 __init init_udelay(void)
 {