summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-03-09 18:20:48 +0100
committerRichard Braun <rbraun@sceen.net>2013-03-09 18:20:48 +0100
commit661109c3a36d71bb7b4f9ceb71398f2bd9f8ebda (patch)
tree5f41ec78fca4c477a842b2394c1207535d067f71 /kern/thread.h
parent402732d9e125797556107d862d5e7f160468ed03 (diff)
kern/thread: add round tracking for time-sharing threads
Now that there is per-thread work accounting, work scaling can occur less frequently. Tracking rounds allows directly reusing the work of a thread on insertion or removal.
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h
index cda20d0d..1a04716a 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -100,6 +100,7 @@ struct thread_ts_runq;
struct thread_ts_ctx {
struct list node;
struct thread_ts_runq *ts_runq;
+ unsigned long round;
unsigned short weight;
unsigned short work;
};