]> git.baikalelectronics.ru Git - kernel.git/commit
drm: make drm_file use keyed wakeups
authorKenny Levinsen <kl@kl.wtf>
Fri, 24 Apr 2020 14:51:03 +0000 (16:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 Apr 2020 15:10:56 +0000 (17:10 +0200)
commit1185eaf889284c4e93adb870017a55642ffc368c
tree4ff14629ecd4cccfd14414e254667a782c6f6497
parentec0dd870547589bcc08ab2ee94d101ad3b101620
drm: make drm_file use keyed wakeups

Some processes, such as systemd, are only polling for EPOLLERR|EPOLLHUP.
As drm_file uses unkeyed wakeups, such a poll receives many spurious
wakeups from uninteresting events.

Use keyed wakeups to allow the wakeup target to more efficiently discard
these uninteresting events.

Signed-off-by: Kenny Levinsen <kl@kl.wtf>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200424145103.3048-1-kl@kl.wtf
drivers/gpu/drm/drm_file.c