Re: How to disable the RTC?



When using softRTC, the system will still synchronize with the hardRTC, on
boot (to initialize) and on a couple other conditions such as timezone
change, day change etc.

-Ross

"Remi de Gravelaine" <gravelaine at aton dash sys dot fr> wrote in message
news:uD$FpwK2GHA.328@xxxxxxxxxxxxxxxxxxxxxxx
Nop - It doesn't work! I can however build the platform but the watch in
the taskbar isn't still runnning which mean that the clock still gets the
value from the RTC hardware (because there is no battery attached so it
doesn't change).

It is not because you see the clock in the taskbar that the RTC hardware
is sollicited (i.e. is the soft RTC does its job, the hard RTC will no be
used anymore.)
If you want to make sure of something, build a debug version and put a
breakpoint in the Bare_GetRealTime function of
Platform\Common\Src\X86\Common\Rtc\CMOS.C.

Any other suggestions on how to stop the RTC (I don't need it at all -
and I don't think the system need it as well - am I right?)?

No. You are not right. The system makes a very intensive usage of the
"System Time", which is normally delivered by the RTC. Actually, each time
a thread or a file or anything that has a timestamp in it is created, the
GetSystemTime function is called and ends in Bare_GetRealTime (if you
don't have an efficient soft RTC active!)

Remi




.



Relevant Pages

  • Reading the RTC
    ... systohw reads the current system time, then sleeps until the next whole second, then writes that date to the RTC. ... readrtc sets up the RTC to raise an IRQ at 1 Hz, then sits in a loop waiting for the IRQ, printing the system time every time the OS catches an IRQ. ...
    (comp.protocols.time.ntp)
  • Re: Unable to change/set time in Fedora 9
    ... This tells the system to write the system time to the rtc (real time ... then this will write utc to the rtc. ... localtime (although there was a bug in some distros that they would ...
    (alt.os.linux)
  • Re: Setting The System Clock [Linux]
    ... but chrony also corrects for your rtc errors. ... >the rtc, subtract 28800 sec, and set your Linux system time to that. ... >it is on local time, and display that time. ...
    (comp.os.linux.misc)
  • Re: `top` reports all CPU states as 0% on i386
    ... Yikes! ... I think my RTC has left the building! ... kern.timecounter.hardware=i8254 to /etc/sysctl.conf because the system clock ... was going insane - it was counting off an hour of system time in the matter ...
    (freebsd-current)
  • Re: Reading the RTC
    ... Does the RTC reset when I write RTC_FREQ_SELECT? ... Write the system time to the RTC ... BTW some operations of hwclock can benefit from a system clock ticking ... to preset frequency via ntptime -f, adjtimex -f, ntpd, or whatever. ...
    (comp.protocols.time.ntp)