PM / Runtime: Rework the "runtime idle" helper routine