Merge pull request #1327 from brooksytech/dev

Big / Little core selection S922X & RK3588
This commit is contained in:
Brooksytech 2023-04-23 22:36:42 -07:00 committed by GitHub
commit 8641d64914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 31 additions and 2 deletions

View file

@ -20,6 +20,10 @@ DEVICE_TEMP_SENSOR=("/sys/class/hwmon/hwmon0/temp1_input")
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy2")
GPU_FREQ=("/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu")
# Affinity
SLOW_CORES="taskset -c 0-1"
FAST_CORES="taskset -c 2-5"
# Volume Keys
DEVICE_KEY_VOLUMEDOWN=114
DEVICE_KEY_VOLUMEUP=115

View file

@ -105,6 +105,19 @@ then
${PERFORMANCE_MODE}
fi
### Set the cores to use
CORES=$(get_setting "cores" "${PLATFORM}" "${ROMNAME##*/}")
if [ "${CORES}" = "little" ]
then
EMUPERF="${SLOW_CORES}"
elif [ "${CORES}" = "big" ]
then
EMUPERF="${FAST_CORES}"
else
### All..
unset EMUPERF
fi
### We need the original system cooling profile later so get it now!
COOLINGPROFILE=$(get_setting cooling.profile)
@ -425,7 +438,7 @@ else
fi
;;
esac
if [[ "${CORE}" =~ "custom" ]]
then
RUNTHIS='${EMUPERF} /usr/bin/${RABIN} -L /storage/.config/retroarch/cores/${EMU}.so --config ${RATMPCONF} --appendconfig ${RAAPPENDCONF} "${ROMNAME}"'

View file

@ -3,7 +3,7 @@
# Copyright (C) 2020-present Fewtarius
PKG_NAME="emulationstation"
PKG_VERSION="4f2c5f7"
PKG_VERSION="5f153d3"
PKG_GIT_CLONE_BRANCH="main"
PKG_REV="1"
PKG_ARCH="any"

View file

@ -17,6 +17,10 @@ DEVICE_TEMP_SENSOR=("/sys/class/hwmon/hwmon0/temp1_input")
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy2")
GPU_FREQ=("/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu")
# Affinity
SLOW_CORES="taskset -c 0-1"
FAST_CORES="taskset -c 2-5"
# Volume Keys
DEVICE_KEY_VOLUMEDOWN=114
DEVICE_KEY_VOLUMEUP=115

View file

@ -10,3 +10,11 @@ DEVICE_BRIGHTNESS="128"
# GPIOS
DEVICE_TEMP_SENSOR="/sys/devices/virtual/thermal/thermal_zone*/temp"
# FREQ Governors
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy4" "/sys/devices/system/cpu/cpufreq/policy6")
GPU_FREQ=("/sys/devices/platform/fb000000.gpu/devfreq/fb000000.gpu")
# Affinity
SLOW_CORES="taskset -c 0-3"
FAST_CORES="taskset -c 4-7"