linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table
@ 2019-02-10  5:24 Zenghui Yu
  2019-02-12 13:17 ` Zenghui Yu
  2019-02-14 10:46 ` Marc Zyngier
  0 siblings, 2 replies; 4+ messages in thread
From: Zenghui Yu @ 2019-02-10  5:24 UTC (permalink / raw)
  To: tglx, jason, marc.zyngier
  Cc: shankerd, wanghaibin.wang, linux-arm-kernel, linux-kernel, Zenghui Yu

In current logic, its_parse_indirect_baser() will be invoked twice
when allocating Device tables. Add a *break* to omit the unnecessary
and annoying (might be ...) invoking.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
---
 drivers/irqchip/irq-gic-v3-its.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index db20e99..9f529a6 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -1946,6 +1946,8 @@ static int its_alloc_tables(struct its_node *its)
 			indirect = its_parse_indirect_baser(its, baser,
 							    psz, &order,
 							    its->device_ids);
+			break;
+
 		case GITS_BASER_TYPE_VCPU:
 			indirect = its_parse_indirect_baser(its, baser,
 							    psz, &order,
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-14 11:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-10  5:24 [PATCH] irqchip/gic-v3-its: Avoid parsing _indirect_ twice for Device table Zenghui Yu
2019-02-12 13:17 ` Zenghui Yu
2019-02-14 10:46 ` Marc Zyngier
2019-02-14 11:35   ` Zenghui Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).