diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-04 14:51:44 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-08 19:53:26 +1000 |
commit | a203658b5ed37c11e5016d3fbbbab9ce018c1b78 (patch) | |
tree | 365f77c1da248c7c62e49fe58eb2daef9f17b73c /arch/powerpc/include/asm/opal.h | |
parent | 68a2d80c80e1563b8dc942d4ffd5b3773b356bb6 (diff) | |
download | op-kernel-dev-a203658b5ed37c11e5016d3fbbbab9ce018c1b78.zip op-kernel-dev-a203658b5ed37c11e5016d3fbbbab9ce018c1b78.tar.gz |
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>
Diffstat (limited to 'arch/powerpc/include/asm/opal.h')
-rw-r--r-- | arch/powerpc/include/asm/opal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h index 3b369e9..52b9f4a 100644 --- a/arch/powerpc/include/asm/opal.h +++ b/arch/powerpc/include/asm/opal.h @@ -292,6 +292,8 @@ static inline int opal_get_async_rc(struct opal_msg msg) return be64_to_cpu(msg.params[1]); } +void opal_wake_poller(void); + #endif /* __ASSEMBLY__ */ #endif /* _ASM_POWERPC_OPAL_H */ |