Date: Tue, 19 Mar 2002 01:34:56 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 7937 for review Message-ID: <200203190934.g2J9Yuj81955@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=7937 Change 7937 by peter@peter_overcee on 2002/03/19 01:34:32 no longer need interrupt printf's Affected files ... ... //depot/projects/ia64/sys/ia64/ia64/interrupt.c#6 edit Differences ... ==== //depot/projects/ia64/sys/ia64/ia64/interrupt.c#6 (text+ko) ==== @@ -91,7 +91,6 @@ { struct thread *td; volatile struct ia64_interrupt_block *ib = IA64_INTERRUPT_BLOCK; - static int clk; td = curthread; atomic_add_int(&td->td_intr_nesting_level, 1); @@ -121,11 +120,6 @@ /* divide hz (1024) by 8 to get stathz (128) */ if((++schedclk2 & 0x7) == 0) statclock((struct clockframe *)framep); - clk++; - if (clk >= 10000) { - printf("\nCLOCK %d\n", clk); - clk = 0; - } critical_exit(); #ifdef SMP } else if (vector == mp_ipi_vector[IPI_AST]) { @@ -152,10 +146,8 @@ CTR1(KTR_SMP, "IPI_TEST, cpuid=%d", PCPU_GET(cpuid)); mp_ipi_test++; #endif - } else { - printf("INT %d\n", vector); + } else ia64_dispatch_intr(framep, vector); - } out: atomic_subtract_int(&td->td_intr_nesting_level, 1); @@ -249,8 +241,6 @@ int errcode; int vector = irq + IA64_HARDWARE_IRQ_BASE; -printf("ia64_setup_intr: %s irq %d\n", name, irq); - /* * XXX - Can we have more than one device on a vector? If so, we have * a race condition here that needs to be worked around similar to @@ -309,10 +299,8 @@ * Find the interrupt thread for this vector. */ i = ia64_intrs[vector]; - if (i == NULL) { -printf("STRAY INTR %ld\n", vector); + if (i == NULL) return; /* no ithread for this vector */ - } ithd = i->ithd; KASSERT(ithd != NULL, ("interrupt vector without a thread")); @@ -321,10 +309,8 @@ * As an optimization, if an ithread has no handlers, don't * schedule it to run. */ - if (TAILQ_EMPTY(&ithd->it_handlers)) { -printf("NO HANDLERS\n"); + if (TAILQ_EMPTY(&ithd->it_handlers)) return; - } if (i->cntp) atomic_add_long(i->cntp, 1); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203190934.g2J9Yuj81955>