mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user