CORTEX: correct CPU min/max on wakeup. + cleanups.