mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
irqchip/gic-v3-its: Fix the incorrect BUG_ON in its_init_vpe_domain()
The driver probe path hits 'BUG_ON(entries != vpe_proxy.dev->nr_ites)' on systems where it has VLPI capability, doesn't support direct LPI feature and boot with a single CPU. Relax the BUG_ON() condition to fix the issue. Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:
parent
4a40aedec6
commit
c427a475b6
1 changed files with 1 additions and 1 deletions
|
@ -2851,7 +2851,7 @@ static int its_init_vpe_domain(void)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
BUG_ON(entries != vpe_proxy.dev->nr_ites);
|
BUG_ON(entries > vpe_proxy.dev->nr_ites);
|
||||||
|
|
||||||
raw_spin_lock_init(&vpe_proxy.lock);
|
raw_spin_lock_init(&vpe_proxy.lock);
|
||||||
vpe_proxy.next_victim = 0;
|
vpe_proxy.next_victim = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue