All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: honor ACPI FADT flag indicating absence of a CMOS RTC
@ 2013-10-16 11:37 Jan Beulich
  2013-10-18  6:29 ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2013-10-16 11:37 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

We shouldn't be creating a corresponding platform device in that case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

---
 arch/x86/kernel/rtc.c |    5 +++++
 1 file changed, 5 insertions(+)

--- 3.12-rc5/arch/x86/kernel/rtc.c
+++ 3.12-rc5-x86-ACPI-no-RTC/arch/x86/kernel/rtc.c
@@ -192,6 +192,11 @@ 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)
+		return -ENODEV;
+#endif
+
 	platform_device_register(&rtc_device);
 	dev_info(&rtc_device.dev,
 		 "registered platform RTC device (no PNP device found)\n");




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-26 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 11:37 [PATCH] x86: honor ACPI FADT flag indicating absence of a CMOS RTC Jan Beulich
2013-10-18  6:29 ` Ingo Molnar
2013-10-18  7:37   ` Jan Beulich
2013-10-18 10:59     ` Ingo Molnar
2013-10-21  8:31       ` [PATCH v2] " Jan Beulich
2013-10-26 13:51         ` [tip:timers/core] x86/time: Honor " tip-bot for Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.