From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 3/5] x86/time: Initialise time earlier during start_secondary() Date: Tue, 4 Mar 2014 10:40:23 +0000 Message-ID: <5315AD97.6020206@citrix.com> References: <1393613824-13230-1-git-send-email-andrew.cooper3@citrix.com> <1393613824-13230-4-git-send-email-andrew.cooper3@citrix.com> <5315A4AB0200007800120C03@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5315A4AB0200007800120C03@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Tim Deegan , Keir Fraser , Xen-devel List-Id: xen-devel@lists.xenproject.org On 04/03/14 09:02, Jan Beulich wrote: >>>> 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 > The thing is that cpu_init() has quite a few printk()s in, mainly on error paths, which use a timestamp of all 0's as the TSC scale and delta have not yet been copied from the bsp. Any potential new functionality in the future could easily define init_percpu_time_late() or similar. ~Andrew