cpufreq: Extract the handover of policy cpu to a helper function