diff options
author | Benjamin Gaignard <[email protected]> | 2017-01-06 10:15:03 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2017-01-06 15:23:19 +0100 |
commit | 9f547425fd9fbcb42b177ec7eec46bd4d7d4ae45 (patch) | |
tree | 193e693cf5270f0de3328b3bb17d762832598fab | |
parent | 62a0d98a188cc4ebd8ea54b37d274ec20465e464 (diff) |
drm: crc: Call wake_up_interruptible() each time there is a new CRC entry
Each time new data has being added in CRC list inform reader by calling
wake_up_interruptible().
This should avoid to do it in all drivers.
Signed-off-by: Benjamin Gaignard <[email protected]>
Cc: Tomeu Vizoso <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/drm_debugfs_crc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c index 8b0eeeed4d78..96891c4a6e23 100644 --- a/drivers/gpu/drm/drm_debugfs_crc.c +++ b/drivers/gpu/drm/drm_debugfs_crc.c @@ -363,6 +363,8 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame, spin_unlock(&crc->lock); + wake_up_interruptible(&crc->wq); + return 0; } EXPORT_SYMBOL_GPL(drm_crtc_add_crc_entry); |