rptun: use detail name for pm wakelock

So we can distinguish the pm wakelock

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-06-20 21:47:20 +08:00 committed by Xiang Xiao
parent 7243616402
commit c76dfde744

View file

@ -1104,7 +1104,8 @@ int rptun_initialize(FAR struct rptun_dev_s *dev)
}
#ifdef CONFIG_RPTUN_PM
pm_wakelock_init(&priv->wakelock, "rptun", PM_IDLE_DOMAIN, PM_IDLE);
snprintf(name, sizeof(name), "rptun-%s", RPTUN_GET_CPUNAME(dev));
pm_wakelock_init(&priv->wakelock, name, PM_IDLE_DOMAIN, PM_IDLE);
#endif
return OK;