summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-02-05 00:13:40 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-02-05 00:13:40 -0500
commit27c0b6fbc5ffe0979436a6436187d1bf952e9a24 (patch)
tree6978012f0721c356a50fa1455bb32ddd5bbc6074 /include/linux
parent7c29c458db133a8a5ad92b73c2a22561cd279da0 (diff)
use futex instead of pthread cond variable for schedule
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 885cc56c..38a5fecb 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -74,11 +74,8 @@ struct task_struct {
int (*thread_fn)(void *);
void *thread_data;
- pthread_mutex_t lock;
- pthread_cond_t wait;
-
atomic_t usage;
- volatile long state;
+ int state;
/* kthread: */
unsigned long kthread_flags;