aboutsummaryrefslogtreecommitdiff
path: root/samples/tracepoints
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-09 10:11:36 +0100
committerIngo Molnar <mingo@elte.hu>2009-03-09 10:11:36 +0100
commit7bffc23e56e92c14b787bf4d95249a32085bfed5 (patch)
tree9c1bbea2f258c82b5a9ff5e30db3a8f0c9cc3faa /samples/tracepoints
parent8a20d84d09ab5d121f989cd99e4fc5f4b49f98ba (diff)
downloadlinaro-lsk-7bffc23e56e92c14b787bf4d95249a32085bfed5.tar.gz
tracing: optimize trace_printk()
Impact: micro-optimization trace_printk() does this unconditionally: trace_printk_fmt = fmt; Where trace_printk_fmt is an entry into a global array. This is very SMP-unfriendly. So only write it once per bootup. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <1236356510-8381-5-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples/tracepoints')
0 files changed, 0 insertions, 0 deletions