Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Nov 2011 23:14:04 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227432 - head/sys/dev/ti
Message-ID:  <201111102314.pAANE4bv060365@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Thu Nov 10 23:14:04 2011
New Revision: 227432
URL: http://svn.freebsd.org/changeset/base/227432

Log:
  Remove dead ifdef.  Driver should always check raised interrupt is
  for the device.

Modified:
  head/sys/dev/ti/if_ti.c

Modified: head/sys/dev/ti/if_ti.c
==============================================================================
--- head/sys/dev/ti/if_ti.c	Thu Nov 10 22:15:11 2011	(r227431)
+++ head/sys/dev/ti/if_ti.c	Thu Nov 10 23:14:04 2011	(r227432)
@@ -2825,14 +2825,11 @@ ti_intr(void *xsc)
 	TI_LOCK(sc);
 	ifp = sc->ti_ifp;
 
-/*#ifdef notdef*/
-	/* Avoid this for now -- checking this register is expensive. */
 	/* Make sure this is really our interrupt. */
 	if (!(CSR_READ_4(sc, TI_MISC_HOST_CTL) & TI_MHC_INTSTATE)) {
 		TI_UNLOCK(sc);
 		return;
 	}
-/*#endif*/
 
 	/* Ack interrupt and stop others from occuring. */
 	CSR_WRITE_4(sc, TI_MB_HOSTINTR, 1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111102314.pAANE4bv060365>