diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-02-22 11:51:06 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-02-22 11:51:06 +0100 |
commit | f74556693bca2ff61e3e0c103f90e1d552d795b6 (patch) | |
tree | 49aefda9ff2bc85bad67cb6847f609d256e659be /xen/arch/x86/time.c | |
parent | 62d1a69a4e9f435999af22b7e31d7ee8910f5de0 (diff) | |
download | xen-f74556693bca2ff61e3e0c103f90e1d552d795b6.tar.gz xen-f74556693bca2ff61e3e0c103f90e1d552d795b6.tar.bz2 xen-f74556693bca2ff61e3e0c103f90e1d552d795b6.zip |
x86: honor ACPI indicating absence of CMOS RTC
On such systems we can boot through EFI only.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/time.c')
-rw-r--r-- | xen/arch/x86/time.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 244b43e7f0..56bffdbe39 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -754,6 +754,9 @@ static unsigned long get_cmos_time(void) return res; } + if ( unlikely(acpi_gbl_FADT.boot_flags & ACPI_FADT_NO_CMOS_RTC) ) + panic("System without CMOS RTC must be booted from EFI\n"); + spin_lock_irqsave(&rtc_lock, flags); /* read RTC exactly on falling edge of update flag */ |