now that schedutil is supported. works better than ondemand for me, no more need for up_threshold and sampling_down_factor
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors
echo schedutil > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo schedutil > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor