Re: [PATCH] sched: use this_rq() helper

2013-05-10 Thread Peter Zijlstra
On Thu, May 09, 2013 at 11:24:03AM -0500, Nathan Zimmer wrote: > It is a few instructions more efficent to and slightly more readable to use > this_rq()-> instead of cpu_rq(smp_processor_id()-> If you've taken the trouble of actually measuring this, including the measurement results is appreciated

[PATCH] sched: use this_rq() helper

2013-05-09 Thread Nathan Zimmer
It is a few instructions more efficent to and slightly more readable to use this_rq()-> instead of cpu_rq(smp_processor_id()-> Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Nathan Zimmer --- kernel/sched/fair.c | 6 ++ kernel/sched/rt.c | 2 +- 2 files changed, 3 insertions(+), 5 de