Thread (8 messages) 8 messages, 3 authors, 2014-03-01

ccf: where to put constraints?

From: Sören Brinkmann <hidden>
Date: 2014-02-24 21:21:58

Hi Wolfram,

On Mon, 2014-02-24 at 09:10PM +0100, Wolfram Sang wrote:
Hi,

Where do I put constraints when using the CCF? I have a CPU and GPU
clock derived from the same PLL. Both clocks have their own divider.
Now, there is the additional constraint that the CPU clock must not be
lower than the GPU clock. Do I add checks in the set_rate functions?
Feels like the wrong layer, but not checking it and blindly relying on
somebody else does not feel correct, too. How to do it best?
I don't know if it's the best or only way, but so far, I did things like
that with clock notifiers.

I.e. when a clock consumer needs to be notified about its input clock
being changed it registers a clock notifier. In that notifier callback
it then can react to the rate change. E.g. adjust dividers to stay
within legal limits or reject the change completely.

	S?ren
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help