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:05:24 +0000 (12:05 -0800)
commit6bd78a44338ad11ff03a2ac554e6fd5bd5ed8418
tree820e97141f8785af2e1d8d9b7d5d806612f89c84
parent8513cfa6820a37f1053708a2f0a5eeedcc7fc9a7
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