[PATCH v6 1/9] cpuidle: Add common time keeping and irq enabling