This patch revamps the timer-related code to match the requirements of SMP configurations with per-cpu local timers.