On Thu, Dec 16, 2010 at 03:06:38PM +0100, Jean Delvare wrote:
Hmm, this is going to be a drain on interrupt latency... disabling
interrupts in a system for that long could cause other things to
jitter.
I think if there's a time constraint, we should look at a method of
using a high-resolution timer to run the clocks so that we don't
have to wait around polling stuff.
The cost of IRQ-spinlock on UP-ARM is about 4 instructions for each lock
and unlock. So taking it a-lot isn't costly in this place... not sure
for the MP variants.
would be nice to document why we're taking this lock here... or in the
header add some more explanation other than 'whilst clock is high'
anyway, the rest looks fine from reading through, there's no obvious
problems.
--
Ben Dooks, ben@fluff.org, http://www.fluff.org/ben/
Large Hadron Colada: A large Pina Colada that makes the universe disappear.
--