Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 1997 15:23:16 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        smp@csn.net (Steve Passe)
Cc:        dufault@hda.com, hasty@rah.star-gate.com, multimedia@FreeBSD.org
Subject:   Re: bt848 driver patch
Message-ID:  <199703152023.PAA16399@hda.hda.com>
In-Reply-To: <199703152116.OAA18410@Ilsa.StevesCafe.com> from Steve Passe at "Mar 15, 97 02:16:09 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> > Can you move the I2C code out of the kernel since it is so lax
> > about timing and inherently a slow operation?
> 
> I suspect they can stay in the kernel and that the disable/enable int calls
> can be removed.  Nothing in the intr routine uses I2C calls, and
> as you say the timing is unimportant (who cares if an async INT
> stalls it, it will finish eventually) so they should be interruptable.

There is no need to turn off interrupts as long as you guarantee
nothing else glitches those signals.  With it in the kernel you're
going to be buzzing away in idle loops locking out other processes.
Since we're talking about roughly 50 us per byte we're talking
measurable time.  But pulling it out of the kernel brings up issues
of allocation.  I guess the smart and easy thing to do is just pull
out the masking.

-- 
Peter Dufault (dufault@hda.com)   Realtime Machine Control and Simulation
HD Associates, Inc.               Voice: 508 433 6936



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