CMParts: Refactor and fix cpu activity

please review it > all