Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/cortex gicv3_irq_handler: No need to call gicv3...



details:   https://anonhg.NetBSD.org/src/rev/a775904ac473
branches:  trunk
changeset: 956536:a775904ac473
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Nov 01 11:04:55 2020 +0000

description:
gicv3_irq_handler: No need to call gicv3_set_priority if we are already at
the desired ipl.

diffstat:

 sys/arch/arm/cortex/gicv3.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 303fbd9e21e2 -r a775904ac473 sys/arch/arm/cortex/gicv3.c
--- a/sys/arch/arm/cortex/gicv3.c       Sun Nov 01 11:03:44 2020 +0000
+++ b/sys/arch/arm/cortex/gicv3.c       Sun Nov 01 11:04:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3.c,v 1.27 2020/11/01 11:03:44 jmcneill Exp $ */
+/* $NetBSD: gicv3.c,v 1.28 2020/11/01 11:04:55 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.27 2020/11/01 11:03:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3.c,v 1.28 2020/11/01 11:04:55 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -723,7 +723,7 @@
                const int ipl = is->is_ipl;
                if (__predict_false(ipl < ci->ci_cpl)) {
                        pic_do_pending_ints(I32_bit, ipl, frame);
-               } else {
+               } else if (ci->ci_cpl != ipl) {
                        gicv3_set_priority(pic, ipl);
                        ci->ci_cpl = ipl;
                }



Home | Main Index | Thread Index | Old Index