aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2010-11-26 17:22:16 +0100
committerIngo Molnar <[email protected]>2010-12-08 20:16:01 +0100
commit40dc11ffb35e8c4e8fa71092048e0f8de9db758c (patch)
tree88ae143dab98b902b7ec94220160560463c063f9 /tools/perf/util/trace-event-scripting.c
parent806c09a7db457be3758e14b1f152761135d89af5 (diff)
printk: Use this_cpu_{read|write} api on printk_pending
__get_cpu_var() is a bit inefficient, lets use __this_cpu_read() and __this_cpu_write() to manipulate printk_pending. printk_needs_cpu(cpu) is called only for the current cpu : Use faster __this_cpu_read(). Remove the redundant unlikely on (cpu_is_offline(cpu)) test: # size kernel/printk.o* text data bss dec hex filename 9942 756 263488 274186 42f0a kernel/printk.o.new 9990 756 263488 274234 42f3a kernel/printk.o.old Signed-off-by: Eric Dumazet <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <1290788536.2855.237.camel@edumazet-laptop> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions