4 ms·
In super low power hardware, it is easier/cheaper/smaller/more energy efficient to count days/weeks/months in hardware. That way no multiplication or division
by londons_explore 5y ago
In super low power hardware, it is easier/cheaper/smaller/more energy efficient to count days/weeks/months in hardware.
That way no multiplication or division is necessary.
For any hardware with more than a few hundred bytes of RAM there is no need for it.
- Gibbon1 5y agoI'll just chime and and say it'd be a lot feaking easier if hardware engineers provided a register that counts ticks of the 32.768khz clock. The MM:DD:YY HH:MM:SS 1/256 ticks format is unhelpful and annoying 99.9999% of the time. And is a source of bugs.
- marcan_42 5y agoSome RTCs do work with a simple counter like that. This calendar nonsense is basically cargo cult from the early IBM PC days. But hardware engineers rarely talk to software engineers, and these IP blocks were designed decades ago and people don't want to touch them...
- nousermane 5y ago...and IBM PC RTC chip (Motorola MC146818) cargo-culted that format from HP98035 clock module. That latter was literally a wrist-watch chip (TI AC5954N), surrounded by logic/microcontroller that programmatically "pressed" buttons and "read back" display digits. CuriousMark did a video about it: https://www.youtube.com/watch?v=pr6HTiWrMmk https://www.youtube.com/watch?v=pr6HTiWrMmk
- pantalaimon 5y agoSometimes you can get both. The full RTC is useful if want to do alarms at the first day of a month or so, but yea - those are niece cases.
- deleted 5y ago[deleted]
- yjftsjthsd-h 5y agoOkay, but if we're looking at Linux kernel workarounds, then we have much bigger system than that so this is not really anything that should ever exist, right?
- tonyarkles 5y agoHere’s a quick example that is mentioned in the rationale of the commit: hardware that is offline and powered down for a significant amount of time. At boot, without an RTC (real time clock), it will have no idea of the current date or time. Most PCs have an RTC that will keep time for a while; if the time is wrong at power up, it’s not too big of a deal to fix it. For an embedded system, though, resetting the time could be a really big deal, especially if it is headless and had no continuous internet connection.