firmware: arm_sdei: add support for CPU private events
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:14 +0000 (15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 14 Jan 2018 18:49:48 +0000 (18:49 +0000)
commitf92b5462a2f22d13a75dc663f7b2fac16a3e61cb
tree8d60625a334c1b6d072eb40e3e77a633138a2470
parentda351827240e1705cca64bb8ae526f0ce1068048
firmware: arm_sdei: add support for CPU private events

Private SDE events are per-cpu, and need to be registered and enabled
on each CPU.

Hide this detail from the caller by adapting our {,un}register and
{en,dis}able calls to send an IPI to each CPU if the event is private.

CPU private events are unregistered when the CPU is powered-off, and
re-registered when the CPU is brought back online. This saves bringing
secondary cores back online to call private_reset() on shutdown, kexec
and resume from hibernate.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/arm_sdei.c