summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-03-11 21:53:50 +0100
committerRichard Braun <rbraun@sceen.net>2013-03-11 21:53:50 +0100
commitd8e380acacb138c46036e2bbb14e2c155e14691c (patch)
tree7583e12ae8cb5ad1798cb506001d2123a4bfa6a1 /kern/task.c
parent7f4202118e6ff217ad159420224663ce146a498d (diff)
kern/thread: optimize round tracking
Instead of maintaining two separate round values, one of which is always the other plus one, maintain a single integer for both the active and expired run queues. In addition, improve overflow handling by using signed subtraction when comparing round values.
Diffstat (limited to 'kern/task.c')
0 files changed, 0 insertions, 0 deletions