Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 May 2003 22:18:31 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        bde@zeta.org.au
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h
Message-ID:  <20030501.221831.05706976.imp@bsdimp.com>
In-Reply-To: <20030502033051.C20181@gamplex.bde.org>
References:  <1721460000.1051803729@aslan.btc.adaptec.com> <20030501.101409.57443470.imp@bsdimp.com> <20030502033051.C20181@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20030502033051.C20181@gamplex.bde.org>
            Bruce Evans <bde@zeta.org.au> writes:
: You can't easily turn it off either.  It may be running, or about to
: be run, and running it may turn interrupts back on.  Perhaps fxp_intr()
: doesn't need to do this, but some interrupt handler do.  They would
: need potentially expensive flags or locks or a different interrupt
: handler to tell them to act differently during detach.  Perhaps a
: single lock is enough, but this thread started with a complaint that
: a single flag test was too expensive (as it may be when you do it a
: billion times here and there).

It wouldn't be too bad if you held the value to write in the softc.
That would mean just an extra indirect load for those drivers that
need to do this.

Warner



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