cpuidle: make a single register function for all