diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2018-07-27 15:38:54 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-10-02 12:37:30 +0300 |
commit | 11e37d357f6ba7a9af850a872396082cc0a0001f (patch) | |
tree | a1c0f60e9eaf515e09cd0365c922d5f5a9b86b2a /include/linux/irqchip | |
parent | 053be4854f9bcceba99cdfa0c89acc4696852c3f (diff) | |
download | linux-11e37d357f6ba7a9af850a872396082cc0a0001f.tar.xz |
irqchip/gic-v3-its: Move pending table allocation to init time
Pending tables for the redistributors are currently allocated
one at a time as each CPU boots. This is causing some grief
for Linux/RT (allocation from within a CPU hotplug notifier is
frown upon).
Let's move this allocation to take place at init time, when we
only have a single CPU. It means we're allocating memory for CPUs
that are not online yet, but most system will boot all of their
CPUs anyway, so that's not completely wasted.
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Bhupesh Sharma <bhsharma@redhat.com>
Tested-by: Lei Zhang <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/linux/irqchip')
-rw-r--r-- | include/linux/irqchip/arm-gic-v3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index 8bdbb5f29494..266093e845bb 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h @@ -585,6 +585,7 @@ struct rdists { void __iomem *rd_base; struct page *pend_page; phys_addr_t phys_base; + bool lpi_enabled; } __percpu *rdist; struct page *prop_page; u64 flags; |