firmware: arm_sdei: make 'sdei_api_event_disable/enable' public

commit cfaccce945988392d70ad42924e76f330c25ab9a openeuler.

NMI Watchdog need to enable the event for each core individually. But the
existing public api 'sdei_event_enable' enable events for all cores when
the event type is private.

Signed-off-by: huwentao <huwentao19@h-partners.com>
This commit is contained in:
Xiongfeng Wang 2021-02-20 11:00:56 +08:00 committed by lcy
parent aced53f8a1
commit 00082d7172
2 changed files with 4 additions and 2 deletions

View File

@ -391,7 +391,7 @@ static int sdei_platform_reset(void)
return err;
}
static int sdei_api_event_enable(u32 event_num)
int sdei_api_event_enable(u32 event_num)
{
return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_ENABLE, event_num, 0, 0, 0,
0, NULL);
@ -441,7 +441,7 @@ int sdei_event_enable(u32 event_num)
}
EXPORT_SYMBOL(sdei_event_enable);
static int sdei_api_event_disable(u32 event_num)
int sdei_api_event_disable(u32 event_num)
{
return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_DISABLE, event_num, 0, 0,
0, 0, NULL);

View File

@ -43,6 +43,8 @@ int sdei_event_unregister(u32 event_num);
int sdei_event_enable(u32 event_num);
int sdei_event_disable(u32 event_num);
int sdei_api_event_interrupt_bind(int hwirq);
int sdei_api_event_disable(u32 event_num);
int sdei_api_event_enable(u32 event_num);
/* GHES register/unregister helpers */
int sdei_register_ghes(struct ghes *ghes, sdei_event_callback *normal_cb,