Skip to content

Commit 17d64f1

Browse files
author
Thomas Zimmermann
committed
drm/fb-helper: Move dirty-fb update into helper function
Move the dirty-fb update from the damage-worker callback into the new helper drm_fb_helper_fb_dirty(), so that it can run outside the damage worker. This change will help to remove the damage worker entirely. No functional changes. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b1be5ba commit 17d64f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/gpu/drm/drm_fb_helper.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,8 @@ static void drm_fb_helper_resume_worker(struct work_struct *work)
367367
console_unlock();
368368
}
369369

370-
static void drm_fb_helper_damage_work(struct work_struct *work)
370+
static void drm_fb_helper_fb_dirty(struct drm_fb_helper *helper)
371371
{
372-
struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work);
373372
struct drm_device *dev = helper->dev;
374373
struct drm_clip_rect *clip = &helper->damage_clip;
375374
struct drm_clip_rect clip_copy;
@@ -404,6 +403,13 @@ static void drm_fb_helper_damage_work(struct work_struct *work)
404403
spin_unlock_irqrestore(&helper->damage_lock, flags);
405404
}
406405

406+
static void drm_fb_helper_damage_work(struct work_struct *work)
407+
{
408+
struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work);
409+
410+
drm_fb_helper_fb_dirty(helper);
411+
}
412+
407413
/**
408414
* drm_fb_helper_prepare - setup a drm_fb_helper structure
409415
* @dev: DRM device

0 commit comments

Comments
 (0)