]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_sdei: Introduce sdei_do_local_call()
authorGavin Shan <gshan@redhat.com>
Tue, 22 Sep 2020 13:04:21 +0000 (23:04 +1000)
committerWill Deacon <will@kernel.org>
Mon, 28 Sep 2020 20:52:23 +0000 (21:52 +0100)
commit7b1be988607ccf786b92cf6ddc3067fb65c4be0b
tree2838b92989bd46727a8149a744c98d33483c4173
parent3bb0904f9eef62c276392c035f4902fbc09da0e5
firmware: arm_sdei: Introduce sdei_do_local_call()

During the CPU hotplug, the private events are registered, enabled
or unregistered on the specific CPU. It repeats the same steps:
initializing cross call argument, make function call on local CPU,
check the returned error.

This introduces sdei_do_local_call() to cover the first steps. The
other benefit is to make CROSSCALL_INIT and struct sdei_crosscall_args
are only visible to sdei_do_{cross, local}_call().

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-12-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/arm_sdei.c