mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
drivers/rpmsg_virtio_lite: init the pm wakelock name
Fix the issue that pm feature not picked before rename the rpmsg_virtio to rpmsg_virtio_lite Signed-off-by: buxiasen <buxiasen@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -819,6 +819,12 @@ int rpmsg_virtio_lite_initialize(FAR struct rpmsg_virtio_lite_s *dev)
|
|||||||
goto err_thread;
|
goto err_thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_RPMSG_VIRTIO_LITE_PM
|
||||||
|
snprintf(name, sizeof(name), "rpmsg-virtio-%s",
|
||||||
|
RPMSG_VIRTIO_LITE_GET_CPUNAME(dev));
|
||||||
|
pm_wakelock_init(&priv->wakelock, name, PM_IDLE_DOMAIN, PM_IDLE);
|
||||||
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
err_thread:
|
err_thread:
|
||||||
|
|||||||
Reference in New Issue
Block a user