From: David Vrabel <david.vrabel@citrix.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>, xen-devel@lists.xen.org
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH] x86/time: Don't use EFI's GetTime call by default
Date: Tue, 1 Dec 2015 17:17:51 +0000 [thread overview]
Message-ID: <565DD63F.1020100@citrix.com> (raw)
In-Reply-To: <1448989066-20343-1-git-send-email-ross.lagerwall@citrix.com>
On 01/12/15 16:57, Ross Lagerwall wrote:
> When EFI is used, don't use EFI's GetTime() to get the time, because it
> is broken on many platforms.
[...]
> --- a/xen/arch/x86/time.c
> +++ b/xen/arch/x86/time.c
> @@ -679,20 +679,28 @@ static void __get_cmos_time(struct rtc_time *rtc)
> rtc->year += 100;
> }
>
> +/* EFI's GetTime() is frequently broken so don't use it by default. */
> +#undef USE_EFI_GET_TIME
> +
> static unsigned long get_cmos_time(void)
> {
> - unsigned long res, flags;
> +#ifdef USE_EFI_GET_TIME
> + unsigned long res;
> +#endif
You could move this res into the if ( efi_enabled ) below.
> + unsigned long flags;
> struct rtc_time rtc;
> unsigned int seconds = 60;
> static bool_t __read_mostly cmos_rtc_probe;
> boolean_param("cmos-rtc-probe", cmos_rtc_probe);
>
> +#ifdef USE_EFI_GET_TIME
> if ( efi_enabled )
> {
> res = efi_get_time();
> if ( res )
> return res;
> }
> +#endif
David
next prev parent reply other threads:[~2015-12-01 17:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 16:57 [PATCH] x86/time: Don't use EFI's GetTime call by default Ross Lagerwall
2015-12-01 17:17 ` David Vrabel [this message]
2015-12-01 17:26 ` Jan Beulich
2015-12-01 19:26 ` Andrew Cooper
2015-12-02 9:33 ` Jan Beulich
2015-12-08 11:02 ` Ian Campbell
2015-12-14 16:53 ` Konrad Rzeszutek Wilk
2015-12-14 17:04 ` Jan Beulich
2015-12-15 7:19 ` Jan Beulich
[not found] ` <20151215145032.GD2496@char.us.oracle.com>
2015-12-15 14:58 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565DD63F.1020100@citrix.com \
--to=david.vrabel@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=ross.lagerwall@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.