From: Mike Frysinger Date: Thu, 10 Dec 2009 01:07:03 +0000 (-0500) Subject: sched: Mark sched_clock() as notrace X-Git-Tag: v2.6.33-rc1~306^2~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1bbfa6f25673019dc0acc9308b667c96f6cda8bf;p=~emulex%2Finfiniband.git sched: Mark sched_clock() as notrace The core ftrace code (trace_clock_local) calls sched_clock() directly, so we don't want to recurisvely trigger the ftrace code. Rather than update every sched_clock() definition, tag the prototype for everyone as notrace. Signed-off-by: Mike Frysinger Cc: Peter Zijlstra LKML-Reference: <1260407223-10900-1-git-send-email-vapier@gentoo.org> Signed-off-by: Ingo Molnar --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 75e6e60bf58..576d838adf6 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1836,7 +1836,8 @@ static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask) extern int sched_clock_stable; #endif -extern unsigned long long sched_clock(void); +/* ftrace calls sched_clock() directly */ +extern unsigned long long notrace sched_clock(void); extern void sched_clock_init(void); extern u64 sched_clock_cpu(int cpu);