summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
diff options
context:
space:
mode:
authorChen Lin Z <lin.z.chen@intel.com>2024-10-31 12:46:14 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-11-13 09:05:56 +0000
commit2839fed575f0eccae7f5a89f7252487dd058b462 (patch)
tree5806e14d099ea1d510ed82e656aa2e219dd3d264 /ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
parentdf6b43f61b074a9c8c09471b586561ca35370408 (diff)
downloadedk2-master.zip
edk2-master.tar.gz
edk2-master.tar.bz2
PcAtChipsetPkg: Write RTC time in PcRtcInit() only when it is neededHEADmaster
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 'ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c')
0 files changed, 0 insertions, 0 deletions