mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +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:
parent
7243616402
commit
c76dfde744
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue