projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77748e6
)
x86/time: Honor ACPI FADT flag indicating absence of a CMOS RTC
author
Jan Beulich
<
[email protected]
>
Mon, 21 Oct 2013 08:31:57 +0000
(09:31 +0100)
committer
Ingo Molnar
<
[email protected]
>
Sat, 26 Oct 2013 11:36:00 +0000
(13:36 +0200)
Even though the omission was found only during code review
(originally in the Xen hypervisor, looking through ACPI v5 flags
and their meanings and uses), we shouldn't be creating a
corresponding platform device in that case.
Signed-off-by: Jan Beulich <
[email protected]
>
Cc: John Stultz <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/rtc.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/rtc.c
b/arch/x86/kernel/rtc.c
index 0aa29394ed6fe8dadda70aeefcf7bb2d3462e6ec..5b9dd445eb89e77654653b9e014a43ad0afd16d0 100644
(file)
--- a/
arch/x86/kernel/rtc.c
+++ b/
arch/x86/kernel/rtc.c
@@
-192,6
+192,14
@@
static __init int add_rtc_cmos(void)
if (mrst_identify_cpu())
return -ENODEV;
+#ifdef CONFIG_ACPI
+ if (acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) {
+ /* This warning can likely go away again in a year or two. */
+ pr_info("ACPI: not registering RTC platform device\n");
+ return -ENODEV;
+ }
+#endif
+
platform_device_register(&rtc_device);
dev_info(&rtc_device.dev,
"registered platform RTC device (no PNP device found)\n");