#!/system/bin/sh

# Loading Governor and setting cpu speed @710/264
# Available frequencies for Las_Venturas 1.0RC3, case sensitive:
# 19200 176000 264000 352000 518400 576000 614400 633600 652800 672000 691200 710400 729600 748800

if [ -e /system/bin/log ];
then
    LOGI="log -p i -t init --"
    LOGE="log -p e -t init --"
else
    LOGI=echo
    LOGE=echo
fi

$LOGI "+++ Setting custom CPU speeds @652/264 ..."
echo "264000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "652800" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# Setting kernel governor
# Available governors for Las_Venturas 1.0RC3, case sensitive:
# interactiveX interactive smartass conservative ondemand smartassV2 performance

$LOGI "+++ Setting CPU smartassV2 governor ..."
echo "smartassV2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
