From owner-p4-projects@FreeBSD.ORG Wed Mar 29 22:22:15 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8DB7A16A424; Wed, 29 Mar 2006 22:22:15 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B37B16A423 for ; Wed, 29 Mar 2006 22:22:15 +0000 (UTC) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAB9943D49 for ; Wed, 29 Mar 2006 22:22:14 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k2TMME0r078278 for ; Wed, 29 Mar 2006 22:22:14 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k2TMME9T078275 for perforce@freebsd.org; Wed, 29 Mar 2006 22:22:14 GMT (envelope-from marcel@freebsd.org) Date: Wed, 29 Mar 2006 22:22:14 GMT Message-Id: <200603292222.k2TMME9T078275@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Cc: Subject: PERFORCE change 94267 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 22:22:15 -0000 http://perforce.freebsd.org/chv.cgi?CH=94267 Change 94267 by marcel@marcel_nfs on 2006/03/29 22:22:07 Remove interrupt tracing/debugging code. Affected files ... .. //depot/projects/uart/dev/scc/scc_core.c#13 edit Differences ... ==== //depot/projects/uart/dev/scc/scc_core.c#13 (text+ko) ==== @@ -45,54 +45,12 @@ #include "scc_if.h" -#define SCC_ITRACE - devclass_t scc_devclass; char scc_driver_name[] = "scc"; MALLOC_DEFINE(M_SCC, "SCC", "SCC driver"); -#ifdef SCC_ITRACE -#define SCC_ITRACE_BUFSZ 128 -static uint32_t scc_itrace_entry[SCC_ITRACE_BUFSZ]; -static uint32_t scc_itrace_count[SCC_ITRACE_BUFSZ]; -static int scc_itrace_head = 0; - static void -scc_itrace_log(struct scc_softc *sc, int ch, int ipend) -{ - uint32_t entry; - int unit; - - unit = device_get_unit(sc->sc_dev); - entry = ipend | (ch << 8) | unit; - - if (scc_itrace_entry[scc_itrace_head] == entry) { - scc_itrace_count[scc_itrace_head]++; - } else { - scc_itrace_head = (scc_itrace_head + 1) % SCC_ITRACE_BUFSZ; - scc_itrace_entry[scc_itrace_head] = entry; - scc_itrace_count[scc_itrace_head] = 1; - } -} - -void scc_itrace_dump(void); -void -scc_itrace_dump() -{ - int idx; - - idx = scc_itrace_head; - do { - if (scc_itrace_entry[idx] != 0) - printf("%06x %u\n", scc_itrace_entry[idx], - scc_itrace_count[idx]); - idx = (idx == 0) ? SCC_ITRACE_BUFSZ - 1 : idx - 1; - } while (idx != scc_itrace_head); -} -#endif /* SCC_ITRACE */ - -static void scc_bfe_intr(void *arg) { struct scc_softc *sc = arg; @@ -103,13 +61,6 @@ cl = sc->sc_class; while (!sc->sc_leaving && (ipend = SCC_IPEND(sc)) != 0) { -#ifdef SCC_ITRACE - for (c = 0; c < cl->cl_channels; c++) { - ch = &sc->sc_chan[c]; - if (ch->ch_ipend) - scc_itrace_log(sc, ch->ch_nr, ch->ch_ipend); - } -#endif i = 0, isrc = SER_INT_OVERRUN; while (ipend) { while (i < SCC_ISRCCNT && !(ipend & isrc))