• Ard Biesheuvel's avatar
    efi: rtc-efi: Mark UIE as unsupported · 822a0279
    Ard Biesheuvel authored
    Tools like hwclock attempt to enable the RTC update interrupt (UIE) to
    maximize the accuracy of the reported time value. The EFI rtc does not
    have interrupt capability so this is a pointless exercise to begin with,
    but the generic RTC framework ends up issuing a SetWakeupTime() Runtime
    Services call before drawing that conclusion on its own.
    
    Instead, we can mark UIE as unsupported at driver probe time. The net
    result is the same, but without the spurious SetWakeupTime() call.
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
    822a0279
rtc-efi.c 5.1 KB