cpufreq: smartmax: cleanup code