pm: make compile dummy when PM not enabled.

Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
buxiasen 2024-06-03 15:36:14 +08:00 committed by Xiang Xiao
parent 5fd03186af
commit b53b449847

View File

@ -837,7 +837,9 @@ void pm_auto_updatestate(int domain);
# define PM_WAKELOCK_DECLARE(v,n,d,s)
# define PM_WAKELOCK_DECLARE_STATIC(v,n,d,s)
# define pm_initialize()
# define pm_domain_register(domain,cb) (0)
# define pm_register(cb) (0)
# define pm_domain_unregister(domain,cb) (0)
# define pm_unregister(cb) (0)
# define pm_activity(domain,prio)
# define pm_stay(domain,state)