From 57af810bcc5f93de86165f05bbefde6c04ba9875 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 21 Jun 2024 23:34:02 +0200 Subject: [PATCH] arc: add recommended option Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 20919b8b..a5fbbe9b 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -2014,14 +2014,14 @@ function governorSelection () { CPUFREQSUPPORT=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) if [ -n "${CPUFREQSUPPORT}" ]; then # Selectable CPU governors - [ "${PLATFORM}" == "epyc7002" ] && echo -e "schedutil \"use schedutil to scale frequency\"" >>"${TMP_PATH}/opts" + [ "${PLATFORM}" == "epyc7002" ] && echo -e "schedutil \"use schedutil to scale frequency *\"" >>"${TMP_PATH}/opts" + [ "${PLATFORM}" != "epyc7002" ] && echo -e "ondemand \"use ondemand to scale frequency *\"" >>"${TMP_PATH}/opts" [ "${PLATFORM}" != "epyc7002" ] && echo -e "conservative \"use conservative to scale frequency\"" >>"${TMP_PATH}/opts" - [ "${PLATFORM}" != "epyc7002" ] && echo -e "ondemand \"use ondemand to scale frequency\"" >>"${TMP_PATH}/opts" echo -e "performance \"always run at max frequency\"" >>"${TMP_PATH}/opts" echo -e "powersave \"always run at lowest frequency\"" >>"${TMP_PATH}/opts" echo -e "userspace \"use userspace settings to scale frequency\"" >>"${TMP_PATH}/opts" dialog --backtitle "$(backtitle)" --title "DSM Frequency Scaling" \ - --menu "Choose a Governor" 0 0 0 --file "${TMP_PATH}/opts" \ + --menu "Choose a Governor\n* Recommended Option" 0 0 0 --file "${TMP_PATH}/opts" \ 2>${TMP_PATH}/resp [ $? -ne 0 ] && return resp=$(cat ${TMP_PATH}/resp)