cpufreq_ondemand.c: rework and fix a bug

- up_threshold and sampling_down_factor back
- remove get_online_cpus()/put_online_cpus(), can cause a kernel panic

Signed-off-by: SkipXS <sskkiipp@gmail.com>