aboutsummaryrefslogtreecommitdiff
path: root/drivers/soc/ti/knav_qmss.h
diff options
context:
space:
mode:
authorGravatar Marc Zyngier <marc.zyngier@arm.com> 2018-10-31 08:41:34 +0000
committerGravatar Olof Johansson <olof@lixom.net> 2018-11-02 11:22:09 -0700
commit832ad0e3da4510fd17f98804abe512ea9a747035 (patch)
tree8e97645f71329fbcff5612148028583ba247d366 /drivers/soc/ti/knav_qmss.h
parentMerge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/a... (diff)
downloadlinux-832ad0e3da4510fd17f98804abe512ea9a747035.tar.gz
linux-832ad0e3da4510fd17f98804abe512ea9a747035.tar.bz2
linux-832ad0e3da4510fd17f98804abe512ea9a747035.zip
soc: ti: QMSS: Fix usage of irq_set_affinity_hint
The Keystone QMSS driver is pretty damaged, in the sense that it does things like this: irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); where cpu_map is a local variable. As we leave the function, this will point to nowhere-land, and things will end-up badly. Instead, let's use a proper cpumask that gets allocated, giving the driver a chance to actually work with things like irqbalance as well as have a hypothetical 64bit future. Cc: stable@vger.kernel.org Acked-by: Santosh Shilimkar <ssantosh@kernel.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/soc/ti/knav_qmss.h')
-rw-r--r--drivers/soc/ti/knav_qmss.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/ti/knav_qmss.h b/drivers/soc/ti/knav_qmss.h
index 7c128132799e..4c28fa938ac7 100644
--- a/drivers/soc/ti/knav_qmss.h
+++ b/drivers/soc/ti/knav_qmss.h
@@ -329,8 +329,8 @@ struct knav_range_ops {
};
struct knav_irq_info {
- int irq;
- u32 cpu_map;
+ int irq;
+ struct cpumask *cpu_mask;
};
struct knav_range_info {