cpufreq: create a helper function to get CPU utilization. Picked from @stratosk

and fixed some hotplug errors

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>