mbox series

[v2,0/2] x86/time: prefer CMOS over EFI_GET_TIME

Message ID 20240830095220.49473-1-roger.pau@citrix.com (mailing list archive)
Headers show
Series x86/time: prefer CMOS over EFI_GET_TIME | expand

Message

Roger Pau Monné Aug. 30, 2024, 9:52 a.m. UTC
Hello,

Workaround a common issue with x86 EFI implementations having broken
EFI_GET_TIME methods, and only resort to EFI_GET_TIME if CMOS is not
available.

First patch splits some of the CMOS probe and fetch logic into a
separate helper, so that patch 2 that actually performs the ordering
change is cleaner.

Thanks, Roger.

Roger Pau Monne (2):
  x86/time: split CMOS time fetching into wrapper
  x86/time: prefer CMOS over EFI_GET_TIME

 xen/arch/x86/time.c | 88 +++++++++++++++++++++++++++------------------
 1 file changed, 54 insertions(+), 34 deletions(-)