]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit396936e0c894773295ad69e907c04a7c219a00ef
tree365f77c1da248c7c62e49fe58eb2daef9f17b73c
parentdfbafe73183b909f6416b99913456c712f5c1575
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