cpufreq: create a helper function to get CPU utilization.