All of lore.kernel.org
 help / color / mirror / Atom feed
* clocksource with changing frequency?
@ 2013-06-21  0:01 ` Sören Brinkmann
  0 siblings, 0 replies; 8+ messages in thread
From: Sören Brinkmann @ 2013-06-21  0:01 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

I have a question/problem with a clocksource whose input frequency can
change.
On Zynq we use the cadece_ttc timer as clocksource. Its input clock is
tightly coupled to the CPU clock. I.e. it changes when cpufreq scales
the CPU clocks.
To compensate this, I added a clock notifier doing this on a frequency
change:
	clocksource_unregister(&ttccs->cs);                              
	clocksource_register_hz(&ttccs->cs, ndata->new_rate / PRESCALE);

This just seems not to be the most elegant way, a heavy weight operation
and results in a couple of locking errors in combination with
suspend/hotplug.

Is there a sane solution for such a case? E.g. for clockevent devices
there is a 'clockevents_update_freq()' to adjust to changing
frequencies.

I assume the sanest solution is an external oscillator as clock input,
but I think our platforms don't provide that :(

	Thanks,
	S?ren

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-21 22:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-21  0:01 clocksource with changing frequency? Sören Brinkmann
2013-06-21  0:01 ` Sören Brinkmann
2013-06-21  0:15 ` John Stultz
2013-06-21  0:15   ` John Stultz
2013-06-21  8:12   ` Thomas Gleixner
2013-06-21  8:12     ` Thomas Gleixner
2013-06-21 22:00     ` Sören Brinkmann
2013-06-21 22:00       ` Sören Brinkmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.