]> Zhao Yanbai Git Server - minix.git/commit
after enqueue()ing a process, only pick_proc() a new one if the current
authorBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 09:45:01 +0000 (09:45 +0000)
committerBen Gras <ben@minix3.org>
Wed, 21 Mar 2007 09:45:01 +0000 (09:45 +0000)
commitbd2ddd5fd42cb31de4bb1beb0b8310600227a33c
treea4e4a6ead74a142b997e53e9ed38592c7f32ef46
parent4e6380191694c92ff12713a501123a2601ec45af
after enqueue()ing a process, only pick_proc() a new one if the current
process is not PREEMPTIBLE (or it's not ready, or there isn't a current
process yet). This fixes a case where a process that isn't
PREEMPTIBLE actually gets preempted. (This solves a race condition
between CLOCK and SYSTEM.)
kernel/proc.c