[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Da_G:
Here is a script which fully documents the new sysfs interface in 0.42, sorry, this will be tweakable only via script until someone writes a GUI (I hate java :))

Using this script will set you up to stock levels of 0.42 (except for the CPU which is set to 1.78GHz), so this makes a good base to make any changes.

Save it as /system/etc/init.d/01cpu with permissions mask 0755 (rwx/rw/rw) (create init.d folder with permissions 0755 if it does not exist)

This script is intended to accompany the following kernel (0.42):

http://www.ponack.net/TPC/dagnarf/dagkernel-0.42-cwm-att.zip

http://www.ponack.net/TPC/dagnarf/dagkernel-0.42-cwm-rogers.zip

http://pastebin.com/fVF0JTk5 (or below)

#!/system/bin/sh

# Script updated Tue Dec 6 by Da_G

# NOTE!!!! A new kernel may change the available options, making one or more options in this file invalid!!
# NOTE!!!! Always check available settings to be sure your script is choosing valid options when upgrading!

#Set permissions to allow anyone to adjust governor/min/max
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

# Below command shows available frequencies in current kernel:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
# 192000 384000 702000 918000 1134000
# 1350000 1566000 1728000 1782000 1836000
# Must be a multiple of 54000 (54MHz)

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "1782000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1782000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "384000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

# Below command shows available sys_vdd levels:
# sys_vdd is the overall system voltage and is determined by the lowest amongst current
# CPU voltage, sys_vdd voltage, and vdd_dig/vdd_mem voltage, all must be lowered to
# lower overall system voltage
# cat /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
# 1: 500000
# 2: 1000000
# 3: 1100000
# 4: 1200000
# 5: 1275000
# Undervolt all levels by -25000 (-25mV)
# echo "-25000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
# Overvolt all levels by +25000 (+25mV)
# echo "+25000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
# Must be a multiple of 12500 (12.5mV)

echo "1 500000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
echo "2 1000000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
echo "3 1100000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
echo "4 1200000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels
echo "5 1275000" > /sys/devices/system/cpu/cpufreq/sys_vdd_table/sys_vdd_levels

# Below command shows available cpu_l2 levels (CPU Speed <---> L2 Speed mapping):
# L2 Speed can bottleneck CPU if set too low, draws more power @ higher speed
# cat /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
# 192000: 432000
# 310500: 310500
# 384000: 432000
# 702000: 702000
# 918000: 918000
# 1134000: 1134000
# 1350000: 1242000
# 1566000: 1404000
# 1728000: 1728000
# 1782000: 1755000
# 1836000: 1755000

# Underclock all L2 levels by -54000 (54MHz)
# echo "-54000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
# Overclock all L2 levels by -54000 (54MHz)
# echo "+54000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels

echo "192000 432000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "310500 310500" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "384000 384000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "702000 702000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "918000 918000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1134000 1134000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1350000 1350000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1566000 1566000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1728000 1728000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1782000 1755000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels
echo "1836000 1755000" > /sys/devices/system/cpu/cpufreq/cpu_l2_table/cpu_l2_levels

# Display all available vdd_dig and vdd_mem voltages for L2 (This also shows all possible L2 levels):
# cat /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
# 310500: 1000000 1100000
# 432000: 1000000 1100000
# 486000: 1000000 1100000
# 540000: 1000000 1100000
# 594000: 1000000 1100000
# 648000: 1000000 1100000
# 702000: 1100000 1100000
# 756000: 1100000 1100000
# 810000: 1100000 1100000
# 864000: 1100000 1100000
# 918000: 1100000 1100000
# 972000: 1100000 1100000
# 1026000: 1100000 1100000
# 1080000: 1100000 1200000
# 1134000: 1100000 1200000
# 1188000: 1200000 1200000
# 1242000: 1200000 1212500
# 1404000: 1200000 1212500
# 1620000: 1250000 1275000
# 1674000: 1275000 1300000
# 1728000: 1300000 1312500
# 1782000: 1312500 1325000
# 1836000: 1312500 1325000
# Undervolt all levels by -25000 (-25mV)
# echo "-25000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
# Overvolt all levels by +25000 (+25mV)
# echo "+25000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
# Must be a multiple of 12500 (12.5mV)

echo "310500 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "432000 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "486000 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "540000 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "594000 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "648000 1000000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "702000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "756000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "810000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "864000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "918000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "972000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1026000 1100000 1100000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1080000 1100000 1200000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1134000 1100000 1200000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1188000 1200000 1200000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1242000 1200000 1212500" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1404000 1200000 1212500" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1620000 1250000 1275000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1674000 1275000 1300000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1728000 1300000 1312500" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1782000 1312500 1325000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels
echo "1836000 1312500 1325000" > /sys/devices/system/cpu/cpufreq/l2_table/l2_levels

#cat /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
# 192000: 812500
# 310500: 875000
# 384000: 875000
# 702000: 975000
# 918000: 1037500
# 1134000: 1075000
# 1350000: 1150000
# 1566000: 1250000
# 1728000: 1250000
# 1782000: 1275000
# 1836000: 1300000
# Undervolt all levels by -25000 (-25mV)
# echo "-25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
# Overvolt all levels by +25000 (+25mV)
# echo "+25000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
# Must be a multiple of 12500 (12.5mV)

echo "192000 812500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "310500 875000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "384000 875000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "702000 975000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "918000 1037500" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1134000 1075000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1350000 1150000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1566000 1250000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1728000 1250000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1782000 1275000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
echo "1836000 1300000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels