]> 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)
commitb347513cf021cc48e65376fcae02f620ab7dbca6
tree805f6c767221ddf0813be23a9b05829429ec60bc
parent16616c63e27e852c8be119f598ee80d0b3fb0760
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