[Skiboot] [RFC] hw/fake-rtc: Add support for emulated rtc clock
Vaibhav Jain
vaibhav at linux.vnet.ibm.com
Tue Sep 8 14:30:16 AEST 2015
On Tue, 2015-09-08 at 06:56 +1000, Benjamin Herrenschmidt wrote:
> On Mon, 2015-09-07 at 14:34 +0530, Vaibhav Jain wrote:
> > The patch overcomes this issue by emulating an rtc clock that's
> > driven
> > by a periodically scheduled timer. The initial epoch is set from the
> > values at "ibm,fake-rtc" memory region. It then creates the periodic
> > timer and on each tick the rtc counter is incremented.
>
> Why ? Why not deduce the RTC clock from the timebase ? We already have
> code to do that, don't we ?
Agreed Benh. I will send v2 with the changes. Original patch was an
effort to reduce the overhead of rtc_read. However just realized that it
was pointless.
~ Vaibhav
More information about the Skiboot
mailing list