Re: [PATCH] trace: use __this_cpu_inc/dec operation instead of __get_cpu_var

2012-11-29 Thread Shan Wei
ping .. Shan Wei said, at 2012/11/19 13:21: > From: Shan Wei > > __this_cpu_inc_return() or __this_cpu_dec generates a single instruction, > which is faster than __get_cpu_var operation. > > Signed-off-by: Shan Wei > --- > kernel/trace/trace.c |4 ++-- > 1 files changed, 2 insertions

Re: [PATCH] trace: use __this_cpu_inc/dec operation instead of __get_cpu_var

2012-11-19 Thread Christoph Lameter
On Mon, 19 Nov 2012, Shan Wei wrote: > __this_cpu_inc_return() or __this_cpu_dec generates a single instruction, > which is faster than __get_cpu_var operation. Reviewed-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

[PATCH] trace: use __this_cpu_inc/dec operation instead of __get_cpu_var

2012-11-18 Thread Shan Wei
From: Shan Wei __this_cpu_inc_return() or __this_cpu_dec generates a single instruction, which is faster than __get_cpu_var operation. Signed-off-by: Shan Wei --- kernel/trace/trace.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trac