hotplug&cpufreq: minor code optimizations