]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tile: fix bug in setting PT_FLAGS_DISABLE_IRQ on kernel entry
authorChris Metcalf <cmetcalf@ezchip.com>
Wed, 23 Dec 2015 20:02:47 +0000 (15:02 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Mon, 18 Jan 2016 19:49:26 +0000 (14:49 -0500)
commit9ce815ed50bbc518526106071f395deacaf94ad7
tree3f3c9324f74c7ddb669c4e9f57c899e40eb4da2c
parentacfb699e3d757b349251ea19b8173220008d1c9e
tile: fix bug in setting PT_FLAGS_DISABLE_IRQ on kernel entry

This flag value is saved in ptregs and used to decide whether
to disable irqs when returning from the kernel.  Commit 1168df528fe4
("tile: don't assume user privilege is zero") performed a bad
merge from some KVM-enabled code that had not yet been upstreamed.

The only issue with the old code is that we will read the interrupt
mask in more conditions than we need to (e.g., coming from user
space when user space has the Interrupt Critical Section bit set, or
coming from a guest kernel), which is a slow multi-cycle operation.
This change saves those few cycles in the common case.

Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
arch/tile/kernel/intvec_64.S