[CPUFREQ] Factor out policy setting from cpufreq_add_dev