Use HWTIMER_SPIN_BARRIER and other minor changes.