]> Zhao Yanbai Git Server - minix.git/commit
APIC timer needs rearming before halting the cpu
authorTomas Hruby <tom@minix3.org>
Wed, 11 May 2011 09:54:23 +0000 (11:54 +0200)
committerTomas Hruby <tom@minix3.org>
Wed, 11 May 2011 09:54:23 +0000 (11:54 +0200)
commitbed9e48c124f04054916a591afdd35bc75bb21c7
tree724255bf1466e60e5ee88fe10e3813c9385c017b
parentf5a1e58f590ae7a0925eba8f9fccae4341534af2
APIC timer needs rearming before halting the cpu

- time stops if there is no activity and the timer expired before
  we halted the cpu

- restart_local_timer() checks if the timer has expired and if so it
  restarts it

- we do the same when switching back to userspace
kernel/proc.c