powerpc/opal: Wake up kopald polling thread before waiting for events
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 4 Jul 2016 04:51:44 +0000 (14:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 8 Jul 2016 09:53:26 +0000 (19:53 +1000)
commita203658b5ed37c11e5016d3fbbbab9ce018c1b78
tree365f77c1da248c7c62e49fe58eb2daef9f17b73c
parent68a2d80c80e1563b8dc942d4ffd5b3773b356bb6
powerpc/opal: Wake up kopald polling thread before waiting for events

On some environments (prototype machines, some simulators, etc...)
there is no functional interrupt source to signal completion, so
we rely on the fairly slow OPAL heartbeat.

In a number of cases, the calls complete very quickly or even
immediately. We've observed that it helps a lot to wakeup the OPAL
heartbeat thread before waiting for event in those cases, it will
call OPAL immediately to collect completions for anything that
finished fast enough.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-By: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-async.c
arch/powerpc/platforms/powernv/opal.c