x86: hpet: Cleanup the clockevents init and register code