[PATCH 2/4][V2] cpuidle: move driver checking within the lock section