From: Russell King Date: Thu, 21 Jul 2011 14:00:57 +0000 (+0100) Subject: ARM: GIC: avoid routing interrupts to offline CPUs X-Git-Tag: v3.1-rc1~258^2~1^4~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dfc54e087c15f823ee9b6541d2f0f314e69cbed;p=pandora-kernel.git ARM: GIC: avoid routing interrupts to offline CPUs The irq_set_affinity() method can be called with masks which include offline CPUs. This allows offline CPUs to have interrupts routed to them by writing to /proc/irq/*/smp_affinity after hotplug has taken a CPU offline. Fix this by ensuring that we select a target CPU present in both the required affinity and the online CPU mask. Ensure that we return IRQ_SET_MASK_OK (which happens to be 0) on success to ensure generic code copies the new mask into the irq_data structure. Signed-off-by: Russell King --- Reading git-diff-tree failed