[HTC Sensation] mat9v:
Ok, here is the file content. :)

# Kernel tweaks for MSN7x30 based devices (HTC Desire HD, HTC Incredible S, HTC Inspire 4G)

target=`getprop ro.board.platform`
case "$target" in "msm7x30")

echo "30000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo "60000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
echo "70" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold
echo "20" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
#echo "10000000" > /proc/sys/kernel/sched_latency_ns
#echo "4000000" > /proc/sys/kernel/sched_min_granularity_ns
#echo "2000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "vr" > /sys/block/mmcblk0/queue/scheduler
echo "vr" > /sys/block/mmcblk1/queue/scheduler
;;

# Kernel tweaks for MSN8660 based devices (HTC Sensation)

"msm8660")

echo "30000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo "30000" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate
echo "60000" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate
echo "60000" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/sampling_rate
echo "70" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo "70" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold
echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold
echo "95" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo "2" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo "20" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
chown system /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
chown system /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate
echo "192000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "192000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpu0/online
chown system /sys/devices/system/cpu/cpu1/online
echo "cfq" > /sys/block/mmcblk0/queue/scheduler
echo "cfq" > /sys/block/mmcblk1/queue/scheduler

# Enable dual-core CPU tweak for HTC Sensation (temporary disabled)

#if [ -e /system/etc/dual_core/main_script ] ; then
#sysrw
#/system/xbin/busybox chmod 777 /system/etc/dual_core/main_script
#/system/xbin/busybox nohup /system/etc/dual_core/main_script >/dev/null &
#sysro
#fi
;;

# Kernel tweaks for Asus Eee Pad Transformer (nVidia Tegra 2)

"tegra")
#echo "216000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo "216000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
#echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#echo "1000000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "70" > /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load
echo "100000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "noop" > /sys/block/mmcblk0/queue/scheduler
echo "noop" > /sys/block/mmcblk1/queue/scheduler
;;
esac

target=`getprop ro.ident`
case "$target" in "Android_Revolution_HD")

# Other kernel tweaks

mount -t debugfs none /sys/kernel/debug
echo "NO_NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features
echo "NO_NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features
umount /sys/kernel/debug
echo "0" > /proc/sys/kernel/panic_on_oops
echo "0" > /proc/sys/kernel/tainted

# Virtual Memory tweaks

#echo "0" > /proc/sys/vm/swappiness
echo "0" > /proc/sys/vm/panic_on_oom
#echo "10" > /proc/sys/vm/vfs_cache_pressure
#echo "500" > /proc/sys/vm/dirty_expire_centisecs
#echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
#echo "90" > /proc/sys/vm/dirty_ratio
#echo "5" > /proc/sys/vm/dirty_background_ratio
echo "1" > /proc/sys/vm/oom_kill_allocating_task
echo "2048" > /proc/sys/vm/min_free_kbytes

# Network tweaks

echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse
echo "1" > /proc/sys/net/ipv4/tcp_sack
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout

# Increase readahead buffers on MMC devices

echo "2048" > /sys/block/mmcblk0/bdi/read_ahead_kb
echo "2048" > /sys/block/mmcblk1/bdi/read_ahead_kb
;;
esac