drm: Add a linux/completion.h implementation
authorFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 4 Jul 2014 09:54:40 +0000 (11:54 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Fri, 4 Jul 2014 12:03:33 +0000 (14:03 +0200)
commit24b50f1af793d1447ff34aca2a93d0c8363b9f69
treeba0204863560d2496ea6933b6f364cb6577cb5cd
parent1ad934198d028651377264e038f8e84bea80d1db
drm: Add a linux/completion.h implementation

* The drm/i915 code expect completion to be a struct containing a
  counter named 'done' and a wait queue named 'wait'

* It also expects this wait queue to be a struct containing a spinlock
  named 'lock'. Adjust the implementation in linux/wait.h accordingly.
sys/dev/drm/drm_fops.c
sys/dev/drm/include/linux/completion.h [new file with mode: 0644]
sys/dev/drm/include/linux/wait.h