post_boot: set the default IRQ affinity for SDM660/SDM630/SDM845
Set the default IRQ affinity to the primary cluster for SDM660, SDM630 and SDM845. When a CPU is isolated/hotplugged, the IRQ affinity is adjusted to one of the CPUs from the default IRQ affinity mask. Change-Id: I1f33fdf2a06e1cb086904dabaaa0414aafcf07c5
This commit is contained in:
parent
f2abab9918
commit
5ad872c8b2
|
@ -1617,6 +1617,11 @@ esac
|
|||
case "$target" in
|
||||
"sdm660")
|
||||
|
||||
# Set the default IRQ affinity to the primary cluster. When a
|
||||
# CPU is isolated/hotplugged, the IRQ affinity is adjusted
|
||||
# to one of the CPU from the default IRQ affinity mask.
|
||||
echo f > /proc/irq/default_smp_affinity
|
||||
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
|
@ -2345,6 +2350,12 @@ esac
|
|||
|
||||
case "$target" in
|
||||
"sdm845")
|
||||
|
||||
# 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 f > /proc/irq/default_smp_affinity
|
||||
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue