Remove race condition in clock switching
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 7 Feb 2010 15:43:36 +0000 (16:43 +0100)
committerArun Persaud <arun@nubati.net>
Sun, 7 Feb 2010 20:06:11 +0000 (12:06 -0800)
commitcf82d6c8eff0e13a4700deba98f8033e6e8ad605
tree9322bbf8ed974a7870d88729913244cbe2e0b6f1
parentf7e7dc832cce623d716a05b2be6c63c8cae541d7
Remove race condition in clock switching

The move number is now incremented inside SwitchClock, when no timer
interrupt is scheduled, so the interrupt cannot occur at the wrong side
of the increment, and decrement the wrong clock.
backend.c