err =pm_runtime_suspend(dev); }returnerr; } 开发者ID:Niisp,项目名称:MT6795.kernel,代码行数:22,代码来源:scsi_pm.c 示例11: lm3561_remove ▲点赞 1▼ staticint__devexitlm3561_remove(struct i2c_client *client){structlm3561_drv_data*data=dev_get_drvdata(&client->dev);structlm3561_platfo...
- ```pm_runtime_set_autosuspend_delay(dev, 5000);```:调用```pm_runtime_set_autosuspend_delay```函数,设置设备的自动挂起延迟时间为5000毫秒。 - ```pm_runtime_put(dev);```:调用```pm_runtime_put```函数,通知内核结束设备的使用。 - ```put_device(dev);```:释放设备指针,确保资源被...
}#ifdefCONFIG_PM_RUNTIME#if(LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))pm_runtime_set_autosuspend_delay(&(mali_gpu_device.dev),1000);pm_runtime_use_autosuspend(&(mali_gpu_device.dev));#endifpm_runtime_enable(&(mali_gpu_device.dev));#endif/* CONFIG_PM_RUNTIME *//* print mal...