Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2961670ybh; Sat, 25 Jul 2020 06:57:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCJd6QeIaRWVp+mXkjPzwDZ2SZfnjkoWuiL9AgJ/nh/XedukEr3QH2vdTOPMvYMvXEQYuN X-Received: by 2002:a17:906:dc12:: with SMTP id yy18mr12762536ejb.295.1595685427214; Sat, 25 Jul 2020 06:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595685427; cv=none; d=google.com; s=arc-20160816; b=akBKBemRfudl3cCzEsixY6Wn6vuNZjna72LIsY0JJINMEKlAvQtjQvcIyNQPVeAGhi wxs57rGUBBeYRJWSz1GFmTlgjPcw7zt94VFmo1uEk1Q46doin1govDAzj321943LP2a6 43JZpKi390kajLuFR+Qzzz2M36kV2v+vv9momyF4+kiBibc16KHXakfgoFvmo/tFvSwR 5mm+K8cRCqsceKE5W2N36cpXIZjJuPzGjFJ5prDODUlLVqkpJtaSTmSf/E60jTj0lIce e/Hr+6Gd5G7GMnoBZek4WaIFsTx81dkkhYfyZVauDA+nzBQB541KWO8Y2xoMg+kNsaEW 4/KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=i7L5Uokminw2hb/ot5HyS/DIJKPw+2NAd2RMYA9W+u0=; b=PpE7NUcG2wvgqA3y2CA6yRfU2o8bDMM3/rvhGGb+EWubOaLPbGxVG3ZlSguwHTSO7a Nl4A+TnTRTP0oi61ExvpRBXhLflkKoioWpcvQzgcOgP+fTBazZCDsAQcpwMARKr5eOcR mWOjBvGHpmXFJKfuwvKSdFFRQjU0S9PcwyUAoSzWc1qopwMoAKvuwV9Sj0HsGFtq6F/G bBbJfT5yOheyQOotLtYVWrVAHhjLglcWESuO0XIdVn5B5dCm+uOqAeKhlVT+QTNPvI2O NqRES9T5JdRNFXMI7C8K/f4qEXOVu+nvnpEkpLSQu2yw3TToM3xIxfHJIoC3eVICggTs KwMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=avbKNi5L; dkim=neutral (no key) header.i=@linutronix.de header.b=EobXRciR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q28si2251365edw.196.2020.07.25.06.56.44; Sat, 25 Jul 2020 06:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=avbKNi5L; dkim=neutral (no key) header.i=@linutronix.de header.b=EobXRciR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727125AbgGYNxk (ORCPT + 99 others); Sat, 25 Jul 2020 09:53:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbgGYNxk (ORCPT ); Sat, 25 Jul 2020 09:53:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1328FC08C5C0; Sat, 25 Jul 2020 06:53:40 -0700 (PDT) Date: Sat, 25 Jul 2020 13:53:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595685218; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i7L5Uokminw2hb/ot5HyS/DIJKPw+2NAd2RMYA9W+u0=; b=avbKNi5LD7FIeafHqpn/AAejrYmW8v9oK5uhbDi8Pk4qgKLQEo3q8Dxxu2x1DM/NNW5vsg AEJBXKcGHTR3DLsGe5SIEJZ4II0tr4dFbvQR8sYtXfK7pW7YBB1oQ4sGEsFP0zpwzYeybz 238NZubAjyFk3cTJ+eLX+t0qk1Sm2E1KdtVcmnlE22nbt0w5EAQglF2gLBQGBiFmrKvExx bkrvaWV0MRzkhGbzNJxCfrG02iDMdpbun/T8AtWoV6ZP+0LBK27RXEeN/Y+4BxNEnNT/qv X8cNw5w6wk+k+BlWKrEOuACSFUVotSbqXsZU4d5B3dSFFslYTDAYCCu+zT2pdg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595685218; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i7L5Uokminw2hb/ot5HyS/DIJKPw+2NAd2RMYA9W+u0=; b=EobXRciR5eYl+jDPtleNmNlRI3O2xUGSAfF7IwOeOoLqbaTuoAkcrkz3YAYU0mgu4BSgq/ mr3HUz9Ul6uW/tBg== From: "tip-bot2 for Hayato Ohhashi" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/timers] x86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz() Cc: Hayato Ohhashi , Ingo Molnar , Boris Ostrovsky , x86 , LKML In-Reply-To: <20200721161231.6019-1-o8@vmm.dev> References: <20200721161231.6019-1-o8@vmm.dev> MIME-Version: 1.0 Message-ID: <159568521657.4006.636725222719551278.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/timers branch of tip: Commit-ID: 898ec52d2ba05915aaedcdb21bff2e944c883cb8 Gitweb: https://git.kernel.org/tip/898ec52d2ba05915aaedcdb21bff2e944c883cb8 Author: Hayato Ohhashi AuthorDate: Tue, 21 Jul 2020 16:12:31 Committer: Ingo Molnar CommitterDate: Sat, 25 Jul 2020 15:49:41 +02:00 x86/xen/time: Set the X86_FEATURE_TSC_KNOWN_FREQ flag in xen_tsc_khz() If the TSC frequency is known from the pvclock page, the TSC frequency does not need to be recalibrated. We can avoid recalibration by setting X86_FEATURE_TSC_KNOWN_FREQ. Signed-off-by: Hayato Ohhashi Signed-off-by: Ingo Molnar Reviewed-by: Boris Ostrovsky Link: https://lore.kernel.org/r/20200721161231.6019-1-o8@vmm.dev --- arch/x86/xen/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index c8897aa..91f5b33 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -39,6 +39,7 @@ static unsigned long xen_tsc_khz(void) struct pvclock_vcpu_time_info *info = &HYPERVISOR_shared_info->vcpu_info[0].time; + setup_force_cpu_cap(X86_FEATURE_TSC_KNOWN_FREQ); return pvclock_tsc_khz(info); }