Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Use the slightly less gr...



details:   https://anonhg.NetBSD.org/src/rev/e50c11766f5b
branches:  trunk
changeset: 1027940:e50c11766f5b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:19:14 2021 +0000

description:
Use the slightly less grody tasklet API violation.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gem.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1756faa7c964 -r e50c11766f5b sys/external/bsd/drm2/dist/drm/i915/i915_gem.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.h    Sun Dec 19 01:19:07 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.h    Sun Dec 19 01:19:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem.h,v 1.2 2021/12/18 23:45:28 riastradh Exp $   */
+/*     $NetBSD: i915_gem.h,v 1.3 2021/12/19 01:19:14 riastradh Exp $   */
 
 /*
  * Copyright © 2016 Intel Corporation
@@ -105,7 +105,11 @@
 
 static inline bool __tasklet_is_enabled(const struct tasklet_struct *t)
 {
+#ifdef __NetBSD__
+       return tasklet_is_enabled(t);
+#else
        return !atomic_read(&t->count);
+#endif
 }
 
 static inline bool __tasklet_enable(struct tasklet_struct *t)



Home | Main Index | Thread Index | Old Index