SDEI: updata the affinity of shared event

when updata routing of an SDEI event, if the registration flags
is SDEI_REGF_RM_PE, need to updata the affinity of shared event.

Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: Ie5d7cc4199253f6af1c28b407f712caac3092d06
This commit is contained in:
Tony Xie 2020-12-31 11:25:15 +08:00 committed by Madhukar Pappireddy
parent 8c8efa8620
commit 6ccbcff502
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ static int sdei_event_routing_set(int ev_num, uint64_t flags, uint64_t mpidr)
/* Update event registration flag */
se->reg_flags = (unsigned int) flags;
if (flags == SDEI_REGF_RM_PE) {
se->affinity = (mpidr & MPIDR_AFFINITY_MASK);
}
/*
* ROUTING_SET is permissible only when event composite state is