powerpc/ps3: Convert half completion to rcuwait
authorPeter Zijlstra (Intel) <peterz@infradead.org>
Sat, 21 Mar 2020 11:25:56 +0000 (12:25 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 21 Mar 2020 15:00:22 +0000 (16:00 +0100)
commite21fee5368f46e211bc1f3cf118f2b122d644132
treeb00284dc7adc91c25baef1ffbe53efd652be03d5
parent80fbaf1c3f2926c834f8ca915441dfe27ce5487e
powerpc/ps3: Convert half completion to rcuwait

The PS3 notification interrupt and kthread use a hacked up completion to
communicate. Since we're wanting to change the completion implementation and
this is abuse anyway, replace it with a simple rcuwait since there is only ever
the one waiter.

AFAICT the kthread uses TASK_INTERRUPTIBLE to not increase loadavg, kthreads
cannot receive signals by default and this one doesn't look different. Use
TASK_IDLE instead.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200321113241.930037873@linutronix.de
arch/powerpc/platforms/ps3/device-init.c