]> git.baikalelectronics.ru Git - kernel.git/commit
s390/irqflags: optimize irq restore
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 11 Jan 2016 08:17:18 +0000 (09:17 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 19 Jan 2016 11:14:01 +0000 (12:14 +0100)
commitb3b8ffed177168d4f0336ad07702b6b49819d34f
tree805f6c767221ddf0813be23a9b05829429ec60bc
parentec1f030a65fda3c3c805a51651a5bcc7af18a288
s390/irqflags: optimize irq restore

The ssm instruction takes longer that stnsm/stosm as it is often
used to modify DAT and PER. We know that irqsave/irqrestore only
deals with external and I/O interrupts and we know that irqrestore
can transition only from disabled->disabled or disabled->enabled,
so we can use the faster stosm.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/irqflags.h
arch/s390/mm/init.c