summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_task.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-12-16 03:36:02 +0000
committerdlg <dlg@openbsd.org>2018-12-16 03:36:02 +0000
commitff4a31df00d60e7bdbdb7aa285f60033f5a00e26 (patch)
treea0c7893216ae746b0b705185b894525def1017f5 /sys/kern/kern_task.c
parentThe .HP macro was deprecated by groff, and that makes sense (diff)
downloadwireguard-openbsd-ff4a31df00d60e7bdbdb7aa285f60033f5a00e26.tar.xz
wireguard-openbsd-ff4a31df00d60e7bdbdb7aa285f60033f5a00e26.zip
add task_pending
jsg@ wants this for drm, and i've had a version of it in diffs sine 2016, but obviously havent needed to use it just yet. task_pending is modelled on timeout_pending, and tells you if the task is on a list waiting to execute. ok jsg@
Diffstat (limited to 'sys/kern/kern_task.c')
-rw-r--r--sys/kern/kern_task.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_task.c b/sys/kern/kern_task.c
index 5c4f15903f5..2839b64eccf 100644
--- a/sys/kern/kern_task.c
+++ b/sys/kern/kern_task.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_task.c,v 1.22 2017/12/14 00:45:16 dlg Exp $ */
+/* $OpenBSD: kern_task.c,v 1.23 2018/12/16 03:36:02 dlg Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@@ -24,8 +24,6 @@
#include <sys/task.h>
#include <sys/proc.h>
-#define TASK_ONQUEUE 1
-
struct taskq {
enum {
TQ_S_CREATED,