Skip to content

Commit 490d332

Browse files
Marc Zyngiertorvalds
authored andcommitted
irqchip/gic-v4.1: Avoid 64bit division for the sake of 32bit ARM
In order to allow the GICv4 code to link properly on 32bit ARM, make sure we don't use 64bit divisions when it isn't strictly necessary. Fixes: 4e6437f ("irqchip/gic-v4.1: Ensure L2 vPE table is allocated at RD level") Reported-by: Stephen Rothwell <[email protected]> Cc: Zenghui Yu <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d1ea35f commit 490d332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,8 +2444,8 @@ static u64 inherit_vpe_l1_table_from_rd(cpumask_t **mask)
24442444
static bool allocate_vpe_l2_table(int cpu, u32 id)
24452445
{
24462446
void __iomem *base = gic_data_rdist_cpu(cpu)->rd_base;
2447-
u64 val, gpsz, npg;
2448-
unsigned int psz, esz, idx;
2447+
unsigned int psz, esz, idx, npg, gpsz;
2448+
u64 val;
24492449
struct page *page;
24502450
__le64 *table;
24512451

0 commit comments

Comments
 (0)