2 * Copyright 2009, Colin Günther, coling@gmx.de
3 * All rights reserved. Distributed under the terms of the MIT License.
9 #include <compat/sys/kernel.h>
13 static timer sHardClockTimer
;
17 * Implementation of FreeBSD's hardclock timer.
20 hardClock(timer
* hardClockTimer
)
22 atomic_add((vint32
*)&ticks
, 1);
28 * Initialization of the hardclock timer which ticks according to hz defined in
29 * compat/sys/kernel.h.
35 return add_timer(&sHardClockTimer
, hardClock
, ticks_to_usecs(1),
43 cancel_timer(&sHardClockTimer
);