sm6150-common: rootdir: Prepare for different soc_id's
Change-Id: I08bd87247ae937fe465b8cfd1d7d8e24950d9c4b
This commit is contained in:
parent
0af4075687
commit
a54ae83f4c
@ -78,14 +78,20 @@ function configure_memory_parameters() {
|
||||
echo 1 > /sys/module/lowmemorykiller/parameters/oom_reaper
|
||||
}
|
||||
|
||||
case "$target" in
|
||||
"sm6150")
|
||||
# Apply settings for sm6150
|
||||
# Set the default IRQ affinity to the silver cluster. When a
|
||||
# CPU is isolated/hotplugged, the IRQ affinity is adjusted
|
||||
# to one of the CPU from the default IRQ affinity mask.
|
||||
echo 3f > /proc/irq/default_smp_affinity
|
||||
|
||||
# Apply settings for sm6150
|
||||
# Set the default IRQ affinity to the silver cluster. When a
|
||||
# CPU is isolated/hotplugged, the IRQ affinity is adjusted
|
||||
# to one of the CPU from the default IRQ affinity mask.
|
||||
echo 3f > /proc/irq/default_smp_affinity
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
|
||||
case "$soc_id" in
|
||||
"365" | "366" )
|
||||
|
||||
# Core control parameters on silver
|
||||
echo 0 0 0 0 1 1 > /sys/devices/system/cpu/cpu0/core_ctl/not_preferred
|
||||
|
Loading…
Reference in New Issue
Block a user