xtensa: SMP: rework IPI processing
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 19 Jan 2019 02:45:17 +0000 (18:45 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 7 Feb 2019 20:16:17 +0000 (12:16 -0800)
commit815af8fff1d120f0c7ab04e7914270508984a04d
tree8abd662c75ed06b3ab746d1cd7ee8e4dbd13bba9
parent05bdebd546db924f9bcb4c524c436a016b0c8fca
xtensa: SMP: rework IPI processing

Don't skip current CPU in send_ipi_message: callers of this function
take care of it and it's harmless anyway.
Don't clear IPI bits one by one, clear all that were read at once.
Check IPI register in a loop in case new IPI was posted while previous
was being handled.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/smp.c