aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/softirq.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2013-08-07 16:28:01 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2013-12-02 14:39:30 -0500
commite8fcaa5c54e3b0371230e5d43a6f650c667da9c5 (patch)
tree966d06c71bc79809ca34675b023602aefc8e578d /kernel/softirq.c
parentdc1ccc48159d63eca5089e507c82c7d22ef60839 (diff)
nohz: Convert a few places to use local per cpu accesses
A few functions use remote per CPU access APIs when they deal with local values. Just do the right conversion to improve performance, code readability and debug checks. While at it, lets extend some of these function names with *_this_cpu() suffix in order to display their purpose more clearly. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/softirq.c')
-rw-r--r--kernel/softirq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 11025ccc06dd..11348de09400 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -311,8 +311,6 @@ asmlinkage void do_softirq(void)
311 */ 311 */
312void irq_enter(void) 312void irq_enter(void)
313{ 313{
314 int cpu = smp_processor_id();
315
316 rcu_irq_enter(); 314 rcu_irq_enter();
317 if (is_idle_task(current) && !in_interrupt()) { 315 if (is_idle_task(current) && !in_interrupt()) {
318 /* 316 /*
@@ -320,7 +318,7 @@ void irq_enter(void)
320 * here, as softirq will be serviced on return from interrupt. 318 * here, as softirq will be serviced on return from interrupt.
321 */ 319 */
322 local_bh_disable(); 320 local_bh_disable();
323 tick_check_idle(cpu); 321 tick_check_idle();
324 _local_bh_enable(); 322 _local_bh_enable();
325 } 323 }
326 324