factor out cpu power management base into a separate file. And fix a bug in