ANDROID: gic-v3: Export gic_v3_resume() for vendor GIC enhancements

syscore ops in gic-v3 takes care of invoking gic_v3_resume() when
exiting from "deep" suspend. However for "s2idle" suspend syscore
ops will not get invoked.

Vendor modules can register for s2idle notifications and
invoke gic_v3_resume() when the first cpu is waking up from s2idle.

Bug: 279879797
Change-Id: Ifd48d676a5bc907eb957c2002934e18bd1c9c095
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
This commit is contained in:
Maulik Shah 2021-06-08 14:35:10 +05:30 committed by Todd Kjos
parent 275c8705e5
commit 227d23d61d
2 changed files with 4 additions and 1 deletions

View file

@ -1399,10 +1399,11 @@ static inline void gic_cpu_pm_init(void) { }
#endif /* CONFIG_CPU_PM */
#ifdef CONFIG_PM
static void gic_resume(void)
void gic_v3_resume(void)
{
trace_android_vh_gic_resume(&gic_data);
}
EXPORT_SYMBOL_GPL(gic_v3_resume);
static int gic_v3_suspend(void)
{

View file

@ -674,6 +674,8 @@ void gic_v3_cpu_init(void);
void gic_v3_dist_wait_for_rwp(void);
void gic_v3_resume(void);
void gic_v3_resume(void);
#endif
#endif