[PATCH 0/7] some cleanups around CPU related code