commit | 821465295b36136998ef294fe176fba4e09c1cd9 | [log] [tgz] |
---|---|---|
author | Shan Wei <davidshan@tencent.com> | Mon Nov 19 13:21:01 2012 +0800 |
committer | Steven Rostedt <rostedt@goodmis.org> | Fri Jan 25 20:36:54 2013 -0500 |
tree | 241bf19a408130332b123780b55fc8303fee491b | |
parent | d75f717e19fe595e7efbf67de195ada8d89dfbbe [diff] |
tracing: Use __this_cpu_inc/dec operation instead of __get_cpu_var __this_cpu_inc_return() or __this_cpu_dec generates a single instruction, which is faster than __get_cpu_var operation. Link: http://lkml.kernel.org/r/50A9C1BD.1060308@gmail.com Reviewed-by: Christoph Lameter <cl@linux.com> Signed-off-by: Shan Wei <davidshan@tencent.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>