From 227d23d61d13336f3c3d97dedfc77e8cc75416df Mon Sep 17 00:00:00 2001 From: Maulik Shah Date: Tue, 8 Jun 2021 14:35:10 +0530 Subject: [PATCH] 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 Signed-off-by: Shreyas K K --- drivers/irqchip/irq-gic-v3.c | 3 ++- include/linux/irqchip/arm-gic-v3.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index a1413e6d65bc..1684d19d46fb 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -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) { diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index ae2701122af8..d4a40c7f8e05 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h @@ -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