> It seems to have disappeared from its previous home, but
> dave@infradead.org was last to be seen with it.
ftp://ftp.infradead.org/pub/pcsp/patch-pcsp-soundcore-2.2.8
I didn't ever get round to making the timer use the RTC instead, although I
occasionally notice it somewhere down my TODO list.
What the PC speaker driver does at the moment is increase the irq0 timer rate
by <n> times, then call the old routine once in every <n> interrupts, after
doing the actual speaker stuff.
You can't use the RTC for the PC speaker, because it can't interrupt fast
enough. That's why we need to shift the system timer onto the RTC.
weejock@ferret.lmh.ox.ac.uk said:
> Platforms. The TSC is an i386 thing, though other architectures
> often have similar features. Either way, it's only really useful for
> busy-waiting and accurate timing measurements anyway.
On platforms which support this kind of thing, #include <asm/timex.h> and use:
static inline cycles_t get_cycles (void);
On platforms which don't support it, this should always return zero.
---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/