[PATCH v8 1/8] cpuidle: Add common time keeping and irq enabling