[Galaxy S II Original Android Development] droidphile:
Whoever is in need, can use the following as your init.d script to set frequencies, voltages, gpu freq/volt, i/o scheduler, bus frequencies, dual core tweaks, governor tweaks, etc.

Adjust the frequencies and voltages to match the stable values for your cpu.

Governor is set from modules with a delay of 10 seconds.

Hope this script could answer a few questions..

#!/system/bin/sh

#Variables to store frequency steps and voltages

AWAKE_MIN="100000"
AWAKE_MAX="1400000"
AWAKE_GOV="ondemandx"

PROFILE="false"
SLEEP_MIN="100000"
SLEEP_MAX="500000"
SLEEP_GOV="ondemandx"

F_STEP1="1600"
F_STEP2="1400"
F_STEP3="1200"
F_STEP4="1000"
F_STEP5="800"
F_STEP6="500"
F_STEP7="200"
F_STEP8="100"
STEP_FREQS=$F_STEP1" "$F_STEP2" "$F_STEP3" "$F_STEP4" "$F_STEP5" "$F_STEP6" "$F_STEP7" "$F_STEP8

AC_STEP1="1375"
AC_STEP2="1250"
AC_STEP3="1175"
AC_STEP4="1075"
AC_STEP5="950"
AC_STEP6="875"
AC_STEP7="850"
AC_STEP8="825"
STEP_VOLTS=$AC_STEP1" "$AC_STEP2" "$AC_STEP3" "$AC_STEP4" "$AC_STEP5" "$AC_STEP6" "$AC_STEP7" "$AC_STEP8

#Insert governor module; set a small delay before setting governor,voltages and min-max freq
insmod /lib/modules/cpufreq_ondemandx.ko

sleep 10

echo $STEP_FREQS > /sys/devices/system/cpu/cpu0/cpufreq/freq_table
echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $STEP_VOLTS > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

#Set bus frequencies (400,400,266,266,266,266,133,133)
echo "0 0 1 1 1 1 2 2" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static
echo "enabled" > /sys/devices/system/cpu/cpu0/cpufreq/busfreq_static

#Set gpu voltages, for default frequencies:160 & 267. (valid frequencies: 100 114 133 160 200 267 400)
echo "160 267" > /sys/class/misc/gpu_clock_control/gpu_control
echo "850000 900000" > /sys/class/misc/gpu_voltage_control/gpu_control

#Dual core management: enable AFTR, load balancing and set second core thresholds
echo "1" > /sys/devices/system/cpu/sched_mc_power_savings
echo "3" > /sys/module/cpuidle/parameters/enable_mask
echo "70" > /sys/module/pm_hotplug/parameters/loadh
echo "25" > /sys/module/pm_hotplug/parameters/loadl
echo "90" > /sys/module/pm_hotplug/parameters/loadh_scroff
echo "35" > /sys/module/pm_hotplug/parameters/loadl_scroff

#Governor tweaks for a very responsive ondemandx which scales down aggressively when load is less
echo "70" > /sys/devices/system/cpu/cpufreq/ondemandx/up_threshold
echo "1" > /sys/devices/system/cpu/cpufreq/ondemandx/sampling_down_factor
echo "60000" > /sys/devices/system/cpu/cpufreq/ondemandx/sampling_rate
echo "10" > /sys/devices/system/cpu/cpufreq/ondemandx/down_differential

#Set i/o scheduler
echo sio > /sys/block/mmcblk0/queue/scheduler

#Screen off profile, disabled in the script. To enable, set PROFILE=true
if [ "$PROFILE" = "true" ]; then
(while [ 1 ] ; do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ "$AWAKE" = "awake" ]; then
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "1" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
echo $AWAKE_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ "$SLEEPING" = "sleeping" ]; then
chmod 644 /sys/devices/system/cpu/cpu1/online
echo "0" > /sys/devices/system/cpu/cpu1/online
chmod 444 /sys/devices/system/cpu/cpu1/online
echo $SLEEP_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $SLEEP_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $SLEEP_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

fi
done &)
fi