s390/irq: simplify on_async_stack()
Make on_async_stack() a bit more readable, even though as usual it depends if one considers "!!!" readable or not. At least the new construct to check if the async stack is in use or not is a bit shorter and generates slightly better code. Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Родитель
2ae6521504
Коммит
bb250e64e4
|
@ -110,7 +110,7 @@ static int on_async_stack(void)
|
|||
{
|
||||
unsigned long frame = current_frame_address();
|
||||
|
||||
return !!!((S390_lowcore.async_stack - frame) >> (PAGE_SHIFT + THREAD_SIZE_ORDER));
|
||||
return ((S390_lowcore.async_stack ^ frame) & ~(THREAD_SIZE - 1)) == 0;
|
||||
}
|
||||
|
||||
static void do_irq_async(struct pt_regs *regs, int irq)
|
||||
|
|
Загрузка…
Ссылка в новой задаче