Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa bah, remove a load of old (debug) code.



details:   https://anonhg.NetBSD.org/src/rev/e34eb6e73366
branches:  trunk
changeset: 778575:e34eb6e73366
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Apr 05 16:16:01 2012 +0000

description:
bah, remove a load of old (debug) code.

diffstat:

 sys/arch/hppa/hppa/ipifuncs.c |  43 ++-----------------------------------------
 1 files changed, 2 insertions(+), 41 deletions(-)

diffs (90 lines):

diff -r 579de43dc7e2 -r e34eb6e73366 sys/arch/hppa/hppa/ipifuncs.c
--- a/sys/arch/hppa/hppa/ipifuncs.c     Thu Apr 05 16:13:46 2012 +0000
+++ b/sys/arch/hppa/hppa/ipifuncs.c     Thu Apr 05 16:16:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipifuncs.c,v 1.1 2012/04/05 16:13:46 skrll Exp $       */
+/*     $NetBSD: ipifuncs.c,v 1.2 2012/04/05 16:16:01 skrll Exp $       */
 /*     $OpenBSD: ipi.c,v 1.4 2011/01/14 13:20:06 jsing Exp $   */
 
 /*
@@ -79,8 +79,6 @@
        u_long ipi_pending;
        int bit = 0;
 
-printf_nolog("%s: ci %p\n",__func__, curcpu());
-
        /* Handle an IPI. */
        ipi_pending = atomic_swap_ulong(&ci->ci_ipi, 0);
 
@@ -104,17 +102,14 @@
 hppa_ipi_send(struct cpu_info *ci, u_long ipi)
 {
        struct iomod *cpu;
-printf_nolog("%s: made it\n", __func__);
        KASSERT(ci->ci_flags & CPUF_RUNNING);
 
        atomic_or_ulong(&ci->ci_ipi, (1L << ipi));
-printf_nolog("%s: after atomic\n",__func__);
 
        /* Send an IPI to the specified CPU by triggering EIR{1} (irq 30). */
        cpu = (struct iomod *)(ci->ci_hpa);
        cpu->io_eir = 1;
        membar_sync();
-printf_nolog("%s: after io_eir ci %p\n",__func__, curcpu());
 
        return 0;
 }
@@ -153,21 +148,6 @@
                ;
 }
 
-#if 0
-void
-hppa_ipi_fpu_save(void)
-{
-       fpu_cpu_save(1);
-}
-
-void
-hppa_ipi_fpu_flush(void)
-{
-       fpu_cpu_save(0);
-}
-
-#endif
-
 void
 hppa_ipi_xcall(void)
 {
@@ -181,7 +161,7 @@
        
        KASSERT(kpreempt_disabled());
        KASSERT(curcpu() != ci);
-Debugger();
+
        if (ci) {
                /* Unicast: remote CPU. */
                hppa_ipi_send(ci, HPPA_IPI_XCALL);
@@ -190,22 +170,3 @@
                hppa_ipi_broadcast(HPPA_IPI_XCALL);
        }
 }
-       
-void hppa_ipi_counts(void);
-void
-hppa_ipi_counts(void)
-{
-       CPU_INFO_ITERATOR cii;
-       struct cpu_info *ci;
-       struct cpu_softc *sc;
-
-       for (CPU_INFO_FOREACH(cii, ci)) {
-               if ((ci->ci_flags & CPUF_RUNNING)) {
-                       sc = ci->ci_softc;
-                       printf("%s: ci %p cpuid %d total ipis %" PRIu64 "\n", __func__, ci, ci->ci_cpuid, sc->sc_evcnt_ipi.ev_count);
-                       printf("%s: ci %p cpuid %d ipis bit 0 %" PRIu64 "\n", __func__, ci, ci->ci_cpuid, sc->sc_evcnt_which_ipi[0].ev_count);
-                       printf("%s: ci %p cpuid %d ipis bit 1 %" PRIu64 "\n", __func__, ci, ci->ci_cpuid, sc->sc_evcnt_which_ipi[1].ev_count);
-                       printf("%s: ci %p cpuid %d ipis bit 2 %" PRIu64 "\n", __func__, ci, ci->ci_cpuid, sc->sc_evcnt_which_ipi[2].ev_count);
-               }
-       }
-}



Home | Main Index | Thread Index | Old Index