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/include/linux drm: Define TASK_INTERRU...
details: https://anonhg.NetBSD.org/src/rev/0696f0bc4d16
branches: trunk
changeset: 1029202:0696f0bc4d16
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Dec 27 13:28:41 2021 +0000
description:
drm: Define TASK_INTERRUPTIBLE so we can reduce diffs a little.
diffstat:
sys/external/bsd/drm2/include/linux/sched.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r e5c4c25f7485 -r 0696f0bc4d16 sys/external/bsd/drm2/include/linux/sched.h
--- a/sys/external/bsd/drm2/include/linux/sched.h Mon Dec 27 12:19:27 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/sched.h Mon Dec 27 13:28:41 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched.h,v 1.22 2021/12/19 12:45:50 riastradh Exp $ */
+/* $NetBSD: sched.h,v 1.23 2021/12/27 13:28:41 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -54,6 +54,7 @@
#define MAX_SCHEDULE_TIMEOUT (INT_MAX/2) /* paranoia */
#define TASK_UNINTERRUPTIBLE __BIT(0)
+#define TASK_INTERRUPTIBLE __BIT(1)
#define current curproc
@@ -113,6 +114,7 @@
{
KASSERT(p == current);
+ KASSERT(state & (TASK_INTERRUPTIBLE|TASK_UNINTERRUPTIBLE));
if (state & TASK_UNINTERRUPTIBLE)
return false;
return sigispending(curlwp, 0);
Home |
Main Index |
Thread Index |
Old Index