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 Remove CPU ID test in armgic_match. Perf...



details:   https://anonhg.NetBSD.org/src/rev/b7b285fe6a75
branches:  trunk
changeset: 936463:b7b285fe6a75
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jul 27 18:36:23 2020 +0000

description:
Remove CPU ID test in armgic_match. Perfectly normal to have GIC in
non-Cortex cores.

diffstat:

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

diffs (27 lines):

diff -r b2ec9cfb1935 -r b7b285fe6a75 sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Mon Jul 27 17:41:09 2020 +0000
+++ b/sys/arch/arm/cortex/gic.c Mon Jul 27 18:36:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gic.c,v 1.40 2020/07/12 13:33:44 skrll Exp $   */
+/*     $NetBSD: gic.c,v 1.41 2020/07/27 18:36:23 jmcneill Exp $        */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -34,7 +34,7 @@
 #define _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.40 2020/07/12 13:33:44 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.41 2020/07/27 18:36:23 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -571,8 +571,6 @@
 
        if (strcmp(cf->cf_name, mpcaa->mpcaa_name) != 0)
                return 0;
-       if (!CPU_ID_CORTEX_P(cputype) || CPU_ID_CORTEX_A8_P(cputype))
-               return 0;
 
        return 1;
 }



Home | Main Index | Thread Index | Old Index