diff options
Diffstat (limited to 'devices/config/sailfish.sh')
-rw-r--r-- | devices/config/sailfish.sh | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/devices/config/sailfish.sh b/devices/config/sailfish.sh index 49176a63..b5cfe127 100644 --- a/devices/config/sailfish.sh +++ b/devices/config/sailfish.sh @@ -1,7 +1,7 @@ #!/bin/bash # shellcheck disable=SC2034 # -# Copyright (c) 2016-2017, Linaro Ltd. +# Copyright (c) 2016-2022, Linaro Ltd. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,12 +18,23 @@ # Helper script used for setting the Pixel frequency. -DEVICE_NAME="Google Pixel" +readonly DEVICE_NAME="Google Pixel" -NUMBER_OF_CPUS=4 # The 2 types of cores do not differ in performance at the pinned `TARGET_FREQ` -DEVICE_IS_BIG_LITTLE=false -CPUS=(0 1 2 3) -TARGET_FREQ=1363200 -CPUS_NAME=kryo -DEFAULT_GOVERNOR=sched +readonly NUMBER_OF_CPUS=4 + +# Define CPU name. +readonly CPUS_NAME="kryo" + +# Define CPU frequency. +readonly CPUS_FREQ=1363200 + +# Define CPU ID's and embed the name and frequency. +readonly KRYO_CPUS=(${CPUS_NAME} ${CPUS_FREQ} 0 1 2 3) + +# Bash does not support 2d arrays so instead store the name of the array and +# later dereference by using "!" e.g: "arr=(${!CPUS[big]})". +declare -A -g CPUS +CPUS[kryo]="KRYO_CPUS[@]" + +readonly DEFAULT_GOVERNOR=sched |