Commit 27c3e945 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/fb-helper: Remove damage worker

The fbdev damage worker is unused, so remove it.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20221115115819.23088-7-tzimmermann@suse.de
parent 7f5cc4a3
...@@ -403,13 +403,6 @@ static void drm_fb_helper_fb_dirty(struct drm_fb_helper *helper) ...@@ -403,13 +403,6 @@ static void drm_fb_helper_fb_dirty(struct drm_fb_helper *helper)
spin_unlock_irqrestore(&helper->damage_lock, flags); spin_unlock_irqrestore(&helper->damage_lock, flags);
} }
static void drm_fb_helper_damage_work(struct work_struct *work)
{
struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work);
drm_fb_helper_fb_dirty(helper);
}
/** /**
* drm_fb_helper_prepare - setup a drm_fb_helper structure * drm_fb_helper_prepare - setup a drm_fb_helper structure
* @dev: DRM device * @dev: DRM device
...@@ -425,7 +418,6 @@ void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper, ...@@ -425,7 +418,6 @@ void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper,
INIT_LIST_HEAD(&helper->kernel_fb_list); INIT_LIST_HEAD(&helper->kernel_fb_list);
spin_lock_init(&helper->damage_lock); spin_lock_init(&helper->damage_lock);
INIT_WORK(&helper->resume_work, drm_fb_helper_resume_worker); INIT_WORK(&helper->resume_work, drm_fb_helper_resume_worker);
INIT_WORK(&helper->damage_work, drm_fb_helper_damage_work);
helper->damage_clip.x1 = helper->damage_clip.y1 = ~0; helper->damage_clip.x1 = helper->damage_clip.y1 = ~0;
mutex_init(&helper->lock); mutex_init(&helper->lock);
helper->funcs = funcs; helper->funcs = funcs;
...@@ -557,7 +549,6 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper) ...@@ -557,7 +549,6 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper)
return; return;
cancel_work_sync(&fb_helper->resume_work); cancel_work_sync(&fb_helper->resume_work);
cancel_work_sync(&fb_helper->damage_work);
info = fb_helper->info; info = fb_helper->info;
if (info) { if (info) {
......
...@@ -116,7 +116,6 @@ struct drm_fb_helper_funcs { ...@@ -116,7 +116,6 @@ struct drm_fb_helper_funcs {
* @damage_clip: clip rectangle used with deferred_io to accumulate damage to * @damage_clip: clip rectangle used with deferred_io to accumulate damage to
* the screen buffer * the screen buffer
* @damage_lock: spinlock protecting @damage_clip * @damage_lock: spinlock protecting @damage_clip
* @damage_work: worker used to flush the framebuffer
* @resume_work: worker used during resume if the console lock is already taken * @resume_work: worker used during resume if the console lock is already taken
* *
* This is the main structure used by the fbdev helpers. Drivers supporting * This is the main structure used by the fbdev helpers. Drivers supporting
...@@ -146,7 +145,6 @@ struct drm_fb_helper { ...@@ -146,7 +145,6 @@ struct drm_fb_helper {
u32 pseudo_palette[17]; u32 pseudo_palette[17];
struct drm_clip_rect damage_clip; struct drm_clip_rect damage_clip;
spinlock_t damage_lock; spinlock_t damage_lock;
struct work_struct damage_work;
struct work_struct resume_work; struct work_struct resume_work;
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment