cpufreq_ondemand.c: Fix optimal_freq logic on ramp down