Searched refs:idle_workqueue (Results 1 – 5 of 5) sorted by relevance
156 if (dm->idle_workqueue && in amdgpu_dm_crtc_set_panel_sr_feature()158 dm->idle_workqueue->enable && in amdgpu_dm_crtc_set_panel_sr_feature()159 !dm->idle_workqueue->running) in amdgpu_dm_crtc_set_panel_sr_feature()160 schedule_work(&dm->idle_workqueue->work); in amdgpu_dm_crtc_set_panel_sr_feature()194 struct idle_workqueue *idle_work; in amdgpu_dm_idle_worker()196 idle_work = container_of(work, struct idle_workqueue, work); in amdgpu_dm_idle_worker()197 idle_work->dm->idle_workqueue->running = true; in amdgpu_dm_idle_worker()222 idle_work->dm->idle_workqueue->running = false; in amdgpu_dm_idle_worker()225 struct idle_workqueue *idle_create_workqueue(struct amdgpu_device *adev) in idle_create_workqueue()227 struct idle_workqueue *idle_work; in idle_create_workqueue()
147 struct idle_workqueue { struct518 struct idle_workqueue *idle_workqueue; member1001 struct idle_workqueue *idle_create_workqueue(struct amdgpu_device *adev);
1257 if (adev->dm.idle_workqueue) { in dm_helpers_enable_periodic_detection()1258 adev->dm.idle_workqueue->enable = enable; in dm_helpers_enable_periodic_detection()1259 if (enable && !adev->dm.idle_workqueue->running && amdgpu_dm_is_headless(adev)) in dm_helpers_enable_periodic_detection()1260 schedule_work(&adev->dm.idle_workqueue->work); in dm_helpers_enable_periodic_detection()
2688 if (adev->dm.idle_workqueue) { in ips_status_show()2689 seq_printf(m, "Idle workqueue - enabled: %d\n", adev->dm.idle_workqueue->enable); in ips_status_show()2690 seq_printf(m, "Idle workqueue - running: %d\n", adev->dm.idle_workqueue->running); in ips_status_show()
2037 adev->dm.idle_workqueue = idle_create_workqueue(adev); in amdgpu_dm_init()2136 if (adev->dm.idle_workqueue) { in amdgpu_dm_fini()2137 if (adev->dm.idle_workqueue->running) { in amdgpu_dm_fini()2138 adev->dm.idle_workqueue->enable = false; in amdgpu_dm_fini()2139 flush_work(&adev->dm.idle_workqueue->work); in amdgpu_dm_fini()2142 kfree(adev->dm.idle_workqueue); in amdgpu_dm_fini()2143 adev->dm.idle_workqueue = NULL; in amdgpu_dm_fini()