From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165108AbdEYBiN (ORCPT ); Wed, 24 May 2017 21:38:13 -0400 Received: from mga01.intel.com ([192.55.52.88]:16506 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161875AbdEYBiM (ORCPT ); Wed, 24 May 2017 21:38:12 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,389,1491289200"; d="scan'208";a="105089986" Subject: Re: [PATCH] x86/timers: Move simple_udelay_calibration past init_hypervisor_platform To: Jan Kiszka , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86 References: <5e89fe60-aab3-2c1c-aba8-32f8ad376189@siemens.com> Cc: Linux Kernel Mailing List From: Lu Baolu Message-ID: <5926357C.2090708@linux.intel.com> Date: Thu, 25 May 2017 09:38:04 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <5e89fe60-aab3-2c1c-aba8-32f8ad376189@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2017 02:04 AM, Jan Kiszka wrote: > This ensures that adjustments to x86_platform done by the hypervisor > setup is already respected by this simple calibration. > > The current user of this, introduced by 1b5aeebf3a92 ("x86/earlyprintk: > Add support for earlyprintk via USB3 debug port"), comes much later > into play. Acked-by: Lu Baolu > > Signed-off-by: Jan Kiszka > --- > arch/x86/kernel/setup.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > index 0b4d3c686b1e..f81823695014 100644 > --- a/arch/x86/kernel/setup.c > +++ b/arch/x86/kernel/setup.c > @@ -980,8 +980,6 @@ void __init setup_arch(char **cmdline_p) > */ > x86_configure_nx(); > > - simple_udelay_calibration(); > - > parse_early_param(); > > #ifdef CONFIG_MEMORY_HOTPLUG > @@ -1041,6 +1039,8 @@ void __init setup_arch(char **cmdline_p) > */ > init_hypervisor_platform(); > > + simple_udelay_calibration(); > + > x86_init.resources.probe_roms(); > > /* after parse_early_param, so could debug it */ >