summaryrefslogtreecommitdiffstats
path: root/lib/smp_processor_id.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2008-05-12 21:20:41 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 20:31:48 +0200
commit6e766410c4babd37bc7cd5e25009c179781742c8 (patch)
treed6517a794a59755cc98e318e3da7779b7257714b /lib/smp_processor_id.c
parent23adec554a7648f99c8acc0caf49c66320cd2b84 (diff)
downloadlinux-stable-6e766410c4babd37bc7cd5e25009c179781742c8.tar.gz
linux-stable-6e766410c4babd37bc7cd5e25009c179781742c8.tar.bz2
linux-stable-6e766410c4babd37bc7cd5e25009c179781742c8.zip
ftrace: annotate core code that should not be traced
Mark with "notrace" functions in core code that should not be traced. The "notrace" attribute will prevent gcc from adding a call to ftrace on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib/smp_processor_id.c')
-rw-r--r--lib/smp_processor_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
index 6c90fb90e19c..e555ab62fbad 100644
--- a/lib/smp_processor_id.c
+++ b/lib/smp_processor_id.c
@@ -7,7 +7,7 @@
#include <linux/kallsyms.h>
#include <linux/sched.h>
-unsigned int debug_smp_processor_id(void)
+notrace unsigned int debug_smp_processor_id(void)
{
unsigned long preempt_count = preempt_count();
int this_cpu = raw_smp_processor_id();