From: "Jan Beulich" Subject: Re: [PATCH v2 3/5] x86/time: Initialise time earlier during start_secondary() Date: Tue, 04 Mar 2014 09:02:19 +0000 Message-ID: <5315A4AB0200007800120C03@nat28.tlf.novell.com> References: <1393613824-13230-1-git-send-email-andrew.cooper3@citrix.com> <1393613824-13230-4-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1393613824-13230-4-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Tim Deegan , Keir Fraser , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 28.02.14 at 19:57, Andrew Cooper wrote: > --- a/xen/arch/x86/smpboot.c > +++ b/xen/arch/x86/smpboot.c > @@ -347,6 +347,8 @@ void start_secondary(void *unused) > > percpu_traps_init(); > > + init_percpu_time(); > + > cpu_init(); > > smp_callin(); I consider it rather risky to put this before the call to cpu_init(). While currently it doesn't seem like the function depends on any of the CPU feature flags, I could easily see this to become necessary. Jan