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