diff options
author | Richard Braun <rbraun@sceen.net> | 2013-03-09 18:20:48 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-03-09 18:20:48 +0100 |
commit | 661109c3a36d71bb7b4f9ceb71398f2bd9f8ebda (patch) | |
tree | 5f41ec78fca4c477a842b2394c1207535d067f71 /kern/thread.h | |
parent | 402732d9e125797556107d862d5e7f160468ed03 (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.h | 1 |
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; }; |