HMP: Restrict irq_default_affinity to hmp_slow_cpu_mask
authorDietmar Eggemann <dietmar.eggemann@arm.com>
Thu, 16 Jan 2014 19:44:10 +0000 (19:44 +0000)
committerJon Medhurst <tixy@linaro.org>
Wed, 22 Jan 2014 09:50:45 +0000 (09:50 +0000)
commit1d462599bee9a2f5f3988aafa43feda602d5e188
tree865e7bce80b902347b4472932d53cc21aa4245cb
parentb2fafaba35f490947b78e8d0d4f4264a137e64cd
HMP: Restrict irq_default_affinity to hmp_slow_cpu_mask

This patch limits the default affinity mask for all irqs to the cluster of
the little cpus.

This patch has the positive side effect that an irq thread which has its
IRQTF_RUNTHREAD set inside irq_thread() -> irq_wait_for_interrupt() will
not overwrite its struct task_struct->cpus_allowed with a full cpu mask of
desc->irq_data.affinity in irq_thread_check_affinity() essentially reverting
patch "HMP: experimental: Force all rt tasks to start on little domain."
for this irq thread.

Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/irq/irqdesc.c