diff options
author | Chen Lin Z <lin.z.chen@intel.com> | 2024-10-31 12:46:14 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-11-13 09:05:56 +0000 |
commit | 2839fed575f0eccae7f5a89f7252487dd058b462 (patch) | |
tree | 5806e14d099ea1d510ed82e656aa2e219dd3d264 /ArmPkg/Include/Drivers | |
parent | df6b43f61b074a9c8c09471b586561ca35370408 (diff) | |
download | edk2-master.zip edk2-master.tar.gz edk2-master.tar.bz2 |
In PcRtcInit(), it always read RTC time and then write it back. It could
potentially cause two issues:
1) There is time gap between read RTC and write RTC, writing RTC time on
every boot could cause RTC time drift after many reboot cycles
2) Writing RTC registers on every boot could cause some unnecessary delay,
slightly impact the boot performance.
The change is only writing RTC time when 1) the current RTC time is not
valid or 2) the RegisterB value is changed.
Signed-off-by: Chen Lin Z <lin.z.chen@intel.com>
Diffstat (limited to 'ArmPkg/Include/Drivers')
0 files changed, 0 insertions, 0 deletions