diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2012-11-13 18:26:54 -0500 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-11-19 10:41:41 -0500 |
commit | 1017769bd0073f0a73e066377cd79a10cf0a33ab (patch) | |
tree | b9abda7f6e5b9525c1685acbffbc4f6034f8f3b3 /kernel | |
parent | e3942ba04052364d3c6454103362cafd87456010 (diff) |
vtime: No need to disable irqs on vtime_account()
vtime_account() is only called from irq entry. irqs
are always disabled at this point so we can safely
remove the irq disabling guards on that function.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/cputime.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 2e8d34aac97e..80b2fd5a7cf0 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c | |||
@@ -467,16 +467,10 @@ void vtime_task_switch(struct task_struct *prev) | |||
467 | #ifndef __ARCH_HAS_VTIME_ACCOUNT | 467 | #ifndef __ARCH_HAS_VTIME_ACCOUNT |
468 | void vtime_account(struct task_struct *tsk) | 468 | void vtime_account(struct task_struct *tsk) |
469 | { | 469 | { |
470 | unsigned long flags; | ||
471 | |||
472 | local_irq_save(flags); | ||
473 | |||
474 | if (in_interrupt() || !is_idle_task(tsk)) | 470 | if (in_interrupt() || !is_idle_task(tsk)) |
475 | vtime_account_system(tsk); | 471 | vtime_account_system(tsk); |
476 | else | 472 | else |
477 | vtime_account_idle(tsk); | 473 | vtime_account_idle(tsk); |
478 | |||
479 | local_irq_restore(flags); | ||
480 | } | 474 | } |
481 | EXPORT_SYMBOL_GPL(vtime_account); | 475 | EXPORT_SYMBOL_GPL(vtime_account); |
482 | #endif /* __ARCH_HAS_VTIME_ACCOUNT */ | 476 | #endif /* __ARCH_HAS_VTIME_ACCOUNT */ |