Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20221115115819.23088-3-tzimmermann@suse.de

+8 -2
+8 -2
drivers/gpu/drm/drm_fb_helper.c
··· 367 367 console_unlock(); 368 368 } 369 369 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) 371 371 { 372 - struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work); 373 372 struct drm_device *dev = helper->dev; 374 373 struct drm_clip_rect *clip = &helper->damage_clip; 375 374 struct drm_clip_rect clip_copy; ··· 401 402 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); 402 403 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); 403 404 spin_unlock_irqrestore(&helper->damage_lock, flags); 405 + } 406 + 407 + static void drm_fb_helper_damage_work(struct work_struct *work) 408 + { 409 + struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work); 410 + 411 + drm_fb_helper_fb_dirty(helper); 404 412 } 405 413 406 414 /**