From 5ad872c8b207fef8a7300b079113154a93703fbf Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Mon, 3 Jul 2017 14:22:57 +0530 Subject: [PATCH] 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 --- rootdir/etc/init.qcom.post_boot.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index d1e28ea5..31bb4af3 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -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