backout drm/include/linux/irq_work.h r1.4 and drm/drm_linux.c r1.83
authorsthen <sthen@openbsd.org>
Wed, 11 Aug 2021 16:14:00 +0000 (16:14 +0000)
committersthen <sthen@openbsd.org>
Wed, 11 Aug 2021 16:14:00 +0000 (16:14 +0000)
problems with suspend on various ThinkPad machines seen by me, tb@, deraadt@,
benno@ seem to go away with this reverted.

sys/dev/pci/drm/drm_linux.c
sys/dev/pci/drm/include/linux/irq_work.h

index 5cc7459..cb8a577 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: drm_linux.c,v 1.83 2021/08/07 06:23:34 jsg Exp $      */
+/*     $OpenBSD: drm_linux.c,v 1.84 2021/08/11 16:14:00 sthen Exp $    */
 /*
  * Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
  * Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -171,7 +171,7 @@ flush_work(struct work_struct *work)
                return false;
 
        if (work->tq)
-               taskq_del_barrier(work->tq, &work->task);
+               taskq_barrier(work->tq);
        return false;
 }
 
@@ -189,7 +189,7 @@ flush_delayed_work(struct delayed_work *dwork)
        }
 
        if (dwork->tq)
-               taskq_del_barrier(dwork->tq, &dwork->work.task);
+               taskq_barrier(dwork->tq);
        return ret;
 }
 
@@ -288,7 +288,7 @@ kthread_flush_work(struct kthread_work *work)
                return;
 
        if (work->tq)
-               taskq_del_barrier(work->tq, &work->task);
+               taskq_barrier(work->tq);
 }
 
 void
index 30daa6f..0a9845f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: irq_work.h,v 1.4 2021/08/07 06:23:34 jsg Exp $        */
+/*     $OpenBSD: irq_work.h,v 1.5 2021/08/11 16:14:00 sthen Exp $      */
 /*
  * Copyright (c) 2015 Mark Kettenis
  *
@@ -49,7 +49,7 @@ irq_work_queue(struct irq_work *work)
 static inline void
 irq_work_sync(struct irq_work *work)
 {
-       taskq_del_barrier(work->tq, &work->task);
+       taskq_barrier(work->tq);
 }
 
 #endif