From c76dfde744931044aba1761fdd6da767208134b6 Mon Sep 17 00:00:00 2001 From: ligd Date: Mon, 20 Jun 2022 21:47:20 +0800 Subject: [PATCH] rptun: use detail name for pm wakelock So we can distinguish the pm wakelock Signed-off-by: ligd --- drivers/rptun/rptun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rptun/rptun.c b/drivers/rptun/rptun.c index 93a018cb87..1021e06d10 100644 --- a/drivers/rptun/rptun.c +++ b/drivers/rptun/rptun.c @@ -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;