Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bce0996 authored by Peter Schelchshorn's avatar Peter Schelchshorn
Browse files

Some cpu governor settings, switch automatically to pegasusq.

parent e72fb912
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ import /init.target.usb.rc
on init
    export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so

# cpu freq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_freq
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/boost_lock_time
@@ -14,6 +15,7 @@ on init
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/dvfs_debug
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0
@@ -30,10 +32,14 @@ on init
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/ignore_nice_load
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/io_is_busy
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate_min
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_nr_cpus
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
    chown system system /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold_at_min_freq

on boot
    # Flash storage isn't a good entropy source, and only causes
@@ -92,6 +98,12 @@ on post-fs-data
    restorecon /data/ISP_CV
    restorecon_recursive /efs/wifi

# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete
on property:sys.boot_completed=1
    write /sys/block/mmcblk0/queue/scheduler cfq
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq
    write /sys/power/cpufreq_min_limit -1

on property:init.svc.macloader=stopped
    chown system root /data/.cid.info
    chmod 0666 /data/.cid.info