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 armgic_priority_to_ipl is only used in #...



details:   https://anonhg.NetBSD.org/src/rev/80115070ac8e
branches:  trunk
changeset: 792045:80115070ac8e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Dec 17 13:12:45 2013 +0000

description:
armgic_priority_to_ipl is only used in #if 0'd code, so apply that as
well.

diffstat:

 sys/arch/arm/cortex/gic.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 72b539261754 -r 80115070ac8e sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Tue Dec 17 13:11:18 2013 +0000
+++ b/sys/arch/arm/cortex/gic.c Tue Dec 17 13:12:45 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gic.c,v 1.4 2013/06/20 05:30:21 matt Exp $     */
+/*     $NetBSD: gic.c,v 1.5 2013/12/17 13:12:45 joerg Exp $    */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -31,7 +31,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.4 2013/06/20 05:30:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.5 2013/12/17 13:12:45 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -143,11 +143,13 @@
        return (IPL_HIGH - ipl) * GICC_PMR_PRIORITIES / NIPL;
 }
 
+#if 0
 static inline int
 armgic_priority_to_ipl(uint32_t priority)
 {
        return IPL_HIGH - priority * NIPL / GICC_PMR_PRIORITIES;
 }
+#endif
 
 static void
 armgic_unblock_irqs(struct pic_softc *pic, size_t irq_base, uint32_t irq_mask)



Home | Main Index | Thread Index | Old Index