aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/kernel/time.c
diff options
context:
space:
mode:
authorChristian Borntraeger2014-12-12 10:44:20 +0100
committerMartin Schwidefsky2014-12-18 09:55:56 +0100
commit032014bc04ae97fd0474f311259db7d669e47507 (patch)
tree43e689bed5919bf7813eab3ff227e8675a885ce1 /arch/s390/kernel/time.c
parent099eae11a8beb13e17f6b9371c7c090c61bc061d (diff)
s390/vtime: Get rid of redundant WARN_ON
in the cpu time accounting function vtime_account_irq_enter (vtime_account_system) we use a WARN_ON_ONCE(!irqs_disabled()). This is redundant as the function virt_timer_forward is always called and has a BUG_ON(!irqs_disabled()). This saves several nanoseconds in my specific testcase (KVM entry/exit) and probably all other callers like (soft)irq entry/exit. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/time.c')
0 files changed, 0 insertions, 0 deletions