]> Zhao Yanbai Git Server - minix.git/commit
pick_proc() called only just before returning to userspace
authorTomas Hruby <tom@minix3.org>
Mon, 9 Nov 2009 17:48:31 +0000 (17:48 +0000)
committerTomas Hruby <tom@minix3.org>
Mon, 9 Nov 2009 17:48:31 +0000 (17:48 +0000)
commitdaf7940c69069eceab0136e204ce5d0eb9830c35
tree8b1a8c156c745462c8d47302192c83e93487df78
parent86cc12b9a300e724b2e2c4e772266e4ccb095cbc
pick_proc() called only just before returning to userspace

- new proc_is_runnable() macro to test whether process is runnable. All tests
  whether p_rts_flags == 0 converted to use this macro

- pick_proc() calls removed from enqueue() and dequeue()

- removed the test for recursive calls from pick_proc() as it certainly cannot
  be called recursively now

- PREEMPTED flag to mark processes that were preempted by enqueueuing a higher
  priority process in enqueue()

- enqueue_head() to enqueue PREEMPTED processes again at the head of their
  current priority queue

- NO_QUANTUM flag to block and dequeue processes preempted by timer tick with
  exceeded quantum. They need to be enqueued again in schedcheck()

- next_ptr global variable removed
kernel/clock.c
kernel/debug.c
kernel/glo.h
kernel/proc.c
kernel/proc.h
kernel/profile.c