From 07f15593bf3695357bbfc007901c0ece7f78c678 Mon Sep 17 00:00:00 2001 From: alanndz Date: Sun, 9 Apr 2023 14:50:44 +0400 Subject: [PATCH] sdm710-common: rootdir: Report max frequency to miHoYo games * Reference: https://github.com/nullxception/kernel_xiaomi_vayu/commit/016179b5c5e3dde145ba5b9ed4aa235196cbce57 Signed-off-by: alanndz Signed-off-by: Sageofd6path Signed-off-by: firebird11 Signed-off-by: Jabiyeff Signed-off-by: alternoegraha --- rootdir/etc/init.qcom.rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index d3c8bee..7e478a6 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -41,7 +41,6 @@ on early-init exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy on init - # Support legacy paths symlink /sdcard /mnt/sdcard symlink /sdcard /storage/sdcard0 @@ -66,6 +65,10 @@ on init write /sys/block/mmcblk0/queue/nr_requests 256 write /sys/block/mmcblk0/queue/iostats 0 + # report max frequency to unity tasks. + write /proc/sys/kernel/sched_lib_name "com.miHoYo.,UnityMain,libunity.so" + write /proc/sys/kernel/sched_lib_mask_force 255 + on post-fs # Start services for bootanim start surfaceflinger