[Android Apps and Games] :
Here are some lines of Code...

$bb is my variable for busybox.

# [-- CPU Boost Settings --]
if [ -e /sys/module/cpu_boost ]; then
$bb echo "0" > /sys/module/cpu_boost/parameters/boost_ms;
$bb echo "Y" > /sys/module/cpu_boost/parameters/hotplug_boost;
$bb echo "0" > /sys/module/cpu_boost/parameters/input_boost_enabled;
$bb echo "0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0" > /sys/module/cpu_boost/parameters/input_boost_freq;
$bb echo "250" > /sys/module/cpu_boost/parameters/input_boost_ms;
$bb echo "N" > /sys/module/cpu_boost/parameters/load_based_syncs;
$bb echo "15" > /sys/module/cpu_boost/parameters/migration_load_threshold;
$bb echo "150" > /sys/module/cpu_boost/parameters/min_input_interval;
$bb echo "N" > /sys/module/cpu_boost/parameters/sched_boost_on_input;
$bb echo "960000" > /sys/module/cpu_boost/parameters/sync_threshold;
$bb echo "1" > /sys/module/cpu_boost/parameters/sysctl_thermal_aware_scheduling;
$bb echo "Y" > /sys/module/cpu_boost/parameters/wakeup_boost;
fi;

# [-- Core Control Settings --]
if [ -e /sys/devices/system/cpu/cpu0/core_ctl ]; then
$bb chmod 666 /sys/devices/system/cpu/cpu0/core_ctl/min_cpus;
$bb chmod 666 /sys/devices/system/cpu/cpu0/core_ctl/max_cpus;
$bb echo "4" > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus;
$bb echo "4" > /sys/devices/system/cpu/cpu0/core_ctl/min_cpus;
$bb chmod 444 /sys/devices/system/cpu/cpu0/core_ctl/min_cpus;
$bb chmod 444 /sys/devices/system/cpu/cpu0/core_ctl/max_cpus;
fi;
if [ -e /sys/devices/system/cpu/cpu4/core_ctl ]; then
$bb chmod 666 /sys/devices/system/cpu/cpu4/core_ctl/min_cpus;
$bb chmod 666 /sys/devices/system/cpu/cpu4/core_ctl/max_cpus;
$bb echo "4" > /sys/devices/system/cpu/cpu4/core_ctl/max_cpus;
$bb echo "4" > /sys/devices/system/cpu/cpu4/core_ctl/min_cpus;
$bb chmod 444 /sys/devices/system/cpu/cpu4/core_ctl/min_cpus;
$bb chmod 444 /sys/devices/system/cpu/cpu4/core_ctl/max_cpus;
fi;

# [-- MSM Performance Settings --]
if [ -e /sys/module/msm_performance ]; then
$bb echo "4" > /sys/module/msm_performance/parameters/io_enter_cycles;
$bb echo "4" > /sys/module/msm_performance/parameters/io_exit_cycles;
$bb echo "25" > /sys/module/msm_performance/parameters/iowait_ceiling_pct;
$bb echo "8" > /sys/module/msm_performance/parameters/iowait_floor_pct;
$bb echo "-1:-1" > /sys/module/msm_performance/parameters/max_cpus;
$bb echo "0" > /sys/module/msm_performance/parameters/num_clusters;
$bb echo "1" > /sys/module/msm_performance/parameters/touchboost;
$bb echo "0" > /sys/module/msm_performance/parameters/workload_detect;
fi;

# [-- Thunderplug Settings --]
if [ -e /sys/kernel/thunderplug ]; then
$bb echo "0" > /sys/kernel/thunderplug/endurance_level;
$bb echo "2" > /sys/kernel/thunderplug/hotplug_style;
$bb echo "65" > /sys/kernel/thunderplug/load_threshold;
$bb echo "500" > /sys/kernel/thunderplug/sampling_rate;
$bb echo "0" > /sys/kernel/thunderplug/sched_mode;
$bb echo "2" > /sys/kernel/thunderplug/suspend_cpus;
$bb echo "0" > /sys/kernel/thunderplug/touch_boost;
fi;

# [-- MSM Hotplug Settings --]
if [ -e /sys/module/msm_hotplug ]; then
$bb echo "2500" > /sys/module/msm_hotplug/boost_lock_duration;
$bb echo "4" > /sys/module/msm_hotplug/cpus_boosted;
$bb echo "1000" > /sys/module/msm_hotplug/down_lock_duration;
$bb echo "99" > /sys/module/msm_hotplug/fast_lane_load;
$bb echo "0" > /sys/module/msm_hotplug/io_is_busy;
$bb echo "8" > /sys/module/msm_hotplug/max_cpus_online;
$bb echo "2" > /sys/module/msm_hotplug/max_cpus_online_susp;
$bb echo "2" > /sys/module/msm_hotplug/min_cpus_online;
$bb echo "0" > /sys/module/msm_hotplug/msm_enabled;
$bb echo "10" > /sys/module/msm_hotplug/update_rates;
fi;

# [-- MSM MPDecision Settings --]
if [ -e /sys/kernel/msm_mpdecision ]; then
$bb echo "130" > /sys/kernel/msm_mpdecision/conf/delay ;
$bb echo "500" > /sys/kernel/msm_mpdecision/conf/down_lock_duration;
$bb echo "0" > /sys/kernel/msm_mpdecision/conf/enabled;
$bb echo "1" > /sys/kernel/msm_mpdecision/conf/hotplug_suspend;
$bb echo "384000" > /sys/kernel/msm_mpdecision/conf/idle_freq;
$bb echo "8" > /sys/kernel/msm_mpdecision/conf/max_cpus;
$bb echo "8" > /sys/kernel/msm_mpdecision/conf/max_cpus_online;
$bb echo "2" > /sys/kernel/msm_mpdecision/conf/max_cpus_online_susp;
$bb echo "2" > /sys/kernel/msm_mpdecision/conf/min_cpus;
$bb echo "2" > /sys/kernel/msm_mpdecision/conf/min_cpus_online;
$bb echo "100" > /sys/kernel/msm_mpdecision/conf/startdelay;
$bb echo "10" > /sys/kernel/msm_mpdecision/conf/suspend_defer_time;
fi;