drm/linux: Rework wait queues
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 16 Jun 2019 20:37:26 +0000 (22:37 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 16 Jun 2019 20:44:39 +0000 (22:44 +0200)
commitd658c12004c09cf15ed81c30f3a6422f24cd7c5a
tree6f332ea5ab1f6ecc57c15161462c0cf5396c6f16
parent412af9ef0220b511700480277eb0e0af2ba5ef98
drm/linux: Rework wait queues

* Make the implementation much closer to the Linux one

* Do not directly try to wake up threads, but use an indirect function
  call to do it, allowing drivers to override the default function

* Implement the expected default_wake_function() and
  autoremove_wake_function() routines
sys/conf/files
sys/dev/drm/drm/Makefile
sys/dev/drm/include/linux/sched.h
sys/dev/drm/include/linux/wait.h
sys/dev/drm/linux_wait.c [new file with mode: 0644]