Skip to content

Commit

Permalink
Tweak some HMP parameters properly
Browse files Browse the repository at this point in the history
Signed-off-by: pedrozzz0 <[email protected]>
  • Loading branch information
pedrozzz0 committed Apr 14, 2021
1 parent 9b4fa17 commit ca784ce
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions libktsr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,18 @@ kmsg1 "-------------------------------------------------------------------------
kmsg1 " TWEAKED CPU. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"

if [[ -e "/sys/kernel/hmp" ]]; then
write "/sys/kernel/hmp/boost" "0"
write "/sys/kernel/hmp/down_compensation_enabled" "1"
write "/sys/kernel/hmp/family_boost" "0"
write "/sys/kernel/hmp/semiboost" "0"
write "/sys/kernel/hmp/up_threshold" "556"
write "/sys/kernel/hmp/down_threshold" "241"
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
kmsg1 " TWEAKED HMP PARAMETERS. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
fi

# GPU Tweaks

# Fetch the available governors from the GPU
Expand Down Expand Up @@ -1831,6 +1843,18 @@ kmsg1 "-------------------------------------------------------------------------
kmsg1 " TWEAKED CPU. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"

if [[ -e "/sys/kernel/hmp" ]]; then
write "/sys/kernel/hmp/boost" "1"
write "/sys/kernel/hmp/down_compensation_enabled" "0"
write "/sys/kernel/hmp/family_boost" "1"
write "/sys/kernel/hmp/semiboost" "1"
write "/sys/kernel/hmp/up_threshold" "400"
write "/sys/kernel/hmp/down_threshold" "130"
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
kmsg1 " TWEAKED HMP PARAMETERS. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
fi

# GPU Tweaks

# Fetch the available governors from the GPU
Expand Down Expand Up @@ -2563,6 +2587,18 @@ kmsg1 "-------------------------------------------------------------------------
kmsg1 " TWEAKED CPU. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"

if [[ -e "/sys/kernel/hmp" ]]; then
write "/sys/kernel/hmp/boost" "0"
write "/sys/kernel/hmp/down_compensation_enabled" "1"
write "/sys/kernel/hmp/family_boost" "0"
write "/sys/kernel/hmp/semiboost" "0"
write "/sys/kernel/hmp/up_threshold" "829"
write "/sys/kernel/hmp/down_threshold" "336"
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
kmsg1 " TWEAKED HMP PARAMETERS. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
fi

# GPU Tweaks

# Fetch the available governors from the GPU
Expand Down Expand Up @@ -3288,6 +3324,18 @@ kmsg1 "-------------------------------------------------------------------------
kmsg1 " TWEAKED CPU. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"

if [[ -e "/sys/kernel/hmp" ]]; then
write "/sys/kernel/hmp/boost" "1"
write "/sys/kernel/hmp/down_compensation_enabled" "0"
write "/sys/kernel/hmp/family_boost" "1"
write "/sys/kernel/hmp/semiboost" "1"
write "/sys/kernel/hmp/up_threshold" "400"
write "/sys/kernel/hmp/down_threshold" "125"
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
kmsg1 " TWEAKED HMP PARAMETERS. "
kmsg1 "-------------------------------------------------------------------------------------------------------------------------------------------------"
fi

# GPU Tweaks

# Fetch the available governors from the GPU
Expand Down

0 comments on commit ca784ce

Please sign in to comment.