[PATCH] CRIS update: profiler
System-level profiler. Signed-off-by: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
59c61138a5
commit
21783c9746
+17
-1
@@ -1,4 +1,4 @@
|
||||
/* $Id: time.c,v 1.14 2004/06/01 05:38:11 starvik Exp $
|
||||
/* $Id: time.c,v 1.18 2005/03/04 08:16:17 starvik Exp $
|
||||
*
|
||||
* linux/arch/cris/kernel/time.c
|
||||
*
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <linux/bcd.h>
|
||||
#include <linux/timex.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/profile.h>
|
||||
|
||||
u64 jiffies_64 = INITIAL_JIFFIES;
|
||||
|
||||
@@ -214,6 +215,21 @@ update_xtime_from_cmos(void)
|
||||
}
|
||||
}
|
||||
|
||||
extern void cris_profile_sample(struct pt_regs* regs);
|
||||
|
||||
void
|
||||
cris_do_profile(struct pt_regs* regs)
|
||||
{
|
||||
|
||||
#if CONFIG_SYSTEM_PROFILER
|
||||
cris_profile_sample(regs);
|
||||
#endif
|
||||
|
||||
#if CONFIG_PROFILING
|
||||
profile_tick(CPU_PROFILING, regs);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Scheduler clock - returns current time in nanosec units.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user