linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q: use 1s irqs to overcome alarm minute granularity?
@ 2025-02-25 10:19 Wolfram Sang
  2025-02-25 10:24 ` Biju Das
  2025-02-25 10:47 ` Alexandre Belloni
  0 siblings, 2 replies; 5+ messages in thread
From: Wolfram Sang @ 2025-02-25 10:19 UTC (permalink / raw)
  To: linux-rtc, Alexandre Belloni; +Cc: linux-renesas-soc, Miquel Raynal

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Hi,

so alarms of the Renesas RZ-N1 RTC can only have one-minute-granularity.
However, it does have a one-second-interrupt. Has it been tried already
for some driver to use such an interrupt to emulate second-granularity
of the alarm? My searches did not yield results so far.

So the idea is, of course, to the let the alarm fire on the minutes.
Then, enable the second-update irqs until reading the seconds matches
the requested seconds of the alarm.

It would not only gain us a better resolution for alarms, but also
allows for enabling UIE.

I get it that handling the different interrupts may get tricky if e.g.
there is a change in the timerqueue while something has already been
setup or so. I need to research this, I have currently no idea how this
is handled at all.

But while doing so, I wanted to ask if there are already opinions if
this approach is feasible or not. I can't imagine that I am the first
one to try it, so there probably are experiences out there?

Thanks and happy hacking,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2025-02-25 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 10:19 Q: use 1s irqs to overcome alarm minute granularity? Wolfram Sang
2025-02-25 10:24 ` Biju Das
2025-02-25 10:28   ` Wolfram Sang
2025-02-25 10:47 ` Alexandre Belloni
2025-02-25 10:54   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).