Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/tegra no need to set arm_cpu_max here, it is...



details:   https://anonhg.NetBSD.org/src/rev/7d7fcafe8f6c
branches:  trunk
changeset: 336985:7d7fcafe8f6c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Mar 29 10:55:11 2015 +0000

description:
no need to set arm_cpu_max here, it is done in soc specific code

diffstat:

 sys/arch/evbarm/tegra/tegra_machdep.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 53000cb870bc -r 7d7fcafe8f6c sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Sun Mar 29 10:44:54 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Sun Mar 29 10:55:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.1 2015/03/29 10:41:59 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.2 2015/03/29 10:55:11 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.1 2015/03/29 10:41:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.2 2015/03/29 10:55:11 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -186,11 +186,6 @@
        DPRINT(" bootstrap");
        tegra_bootstrap();
 
-#ifdef MULTIPROCESSOR
-       DPRINT(" ncpu");
-       arm_cpu_max = 1 + __SHIFTOUT(armreg_l2ctrl_read(), L2CTRL_NUMCPU);
-#endif
-
        /* Heads up ... Setup the CPU / MMU / TLB functions. */
        DPRINT(" cpufunc");
        if (set_cpufuncs())



Home | Main Index | Thread Index | Old Index