How is user space notified of CPU speed changes?

From: Lee Revell
Date: Thu Oct 21 2004 - 19:54:01 EST


This issue came up on the JACK (http://jackit.sf.net) mailing list.
Google was not helpful so I ask here.

JACK needs to know the CPU speed, in order to calculate the DSP load
among other things. It used to be a valid assumption that you could
calculate it on startup and it would not change.

Now with frequency scaling (apparently desktops do this as well as
laptops) this doesn't work anymore. Is there a sane way for jackd to be
notified when the CPU speed changes? Polling a file in /sys is not good
enough, the overhead is unacceptable and we need to know _now_.

Is this the kind of thing that would require the new kernel event
interface?

Lee

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/