From: Ard Biesheuvel Date: Tue, 13 Jan 2015 12:28:53 +0000 (+0000) Subject: efi: rtc-efi: Mark UIE as unsupported X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=822a0279287603f150b991d0ea319bbba5aa235a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git efi: rtc-efi: Mark UIE as unsupported 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: Ard Biesheuvel Signed-off-by: Matt Fleming --- diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 53b589dc34eb..d30fb65fbffa 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -218,6 +218,7 @@ static int __init efi_rtc_probe(struct platform_device *dev) if (IS_ERR(rtc)) return PTR_ERR(rtc); + rtc->uie_unsupported = 1; platform_set_drvdata(dev, rtc); return 0;