Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4639511rwb; Mon, 8 Aug 2022 04:51:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7QRsxAuUVUuFDl90HzqTkI0AtFN7SGePCVttMoDeULatdsCm6XkzvQeaEAxWsUnGL369CP X-Received: by 2002:a05:6a00:188e:b0:52e:2606:a805 with SMTP id x14-20020a056a00188e00b0052e2606a805mr17851056pfh.49.1659959493203; Mon, 08 Aug 2022 04:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659959493; cv=none; d=google.com; s=arc-20160816; b=IyO434loGA1NQJ6QRF4AFP4t9n4S9pe5mtOpuHPZn0xawqiw8hJ+BOAHJZfgBjdhfg wkTI5C1WFaiYrZhZCgnQys333EcC+rmOLe+Oxtjnk7A7P9QzLSD4B01N2fBI3kmxs20L iCIJQnlqTwyBXCP6AJ4sDXfgkaw12X6q2wA+T9IqfB8Pv8B6kYrXA/nAg+jf8Mxznin2 zHbm3waNPAPJ1Mx2SiZtwrTDiCWEpSvJGsNLhoRxs+PQ+Ui15CiuDe8vs7CDrJlyZV6w 8Anzzq1VUCTqk2+cCQlgw8neDPuaGuzSfWK05UE1gd+1tgtq50C5OufCSo/BbIRmOC9k Z+8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zFUP8j/Tds5lHdwB+fGYReUPZdcL8j04/wP665A/f0o=; b=Gts/kM6X6nx20E/zgKjgn1jaPCblh+HcMUiSv2mKMGi2jyUAu4jRy2M7dDADavD8ij EfMvkq1oL+rDdcOsj5rorgOqPEDUjSRjSeAoTB6MgAUVqjNutQo0O/TcDH4U3dKOAhhE S8fdkzQnl5SSze5EfN4829AB+ZOZllqkisCkJjH7acHw2X+qPWnqCCi0DDK8ZKHHOWMs CSuV9PvSpmblR6nl/ALr9Vl3jGPlyx9ylkz7ZrAohFLgopGwrizFY3FnuRD/f5PwxIG2 VqYfCyxorBqaApb8cd/retFjhwSzVzT4bWRJ8ZT/b8g4x2x8eLjf39yI3+CRociTWGJ8 vyBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JoTNVl91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u71-20020a63854a000000b0041d296673d1si5480472pgd.24.2022.08.08.04.51.19; Mon, 08 Aug 2022 04:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JoTNVl91; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242916AbiHHLka (ORCPT + 99 others); Mon, 8 Aug 2022 07:40:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242918AbiHHLkY (ORCPT ); Mon, 8 Aug 2022 07:40:24 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FB26140; Mon, 8 Aug 2022 04:40:24 -0700 (PDT) Received: from localhost.localdomain (unknown [39.46.64.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 201816601C24; Mon, 8 Aug 2022 12:40:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1659958823; bh=vPB21bP63a3cyzTnyqBlMpssVAO3NSTN7hNkLuHypu8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JoTNVl91VFXUdCtI2GOBG1i5U5F4Odv6afy0ICI4ZpimvFRHIU8MOOyCfk+QxWATd 60quu7bvRpPir6ji6B7NSeUjYM4fH/Pwd374OqsDOZd8tfglu27WLUvmNVU9x9D9RI NrLPV5Buo7crkpryzibFHHNTF1Z1Z2Ej9DPhqyZzlNjJtVdgwC3luA2wCSRmJ2jbNu khMB9pY4cQWszlWCEKAxhr89RM26k3yO+mwyXAE5Gthggb7XC3cKhxnciy4FisRkpv iA2eLzFONPU3sGUojQnFUyZ/Fv8lVRyIP15DxRf/PZWEOP7WpbpUJ8BElhlwXLrej3 HO4mwjn4Jmpmw== From: Muhammad Usama Anjum To: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), "H. Peter Anvin" , linux-doc@vger.kernel.org (open list:DOCUMENTATION), linux-kernel@vger.kernel.org (open list) Cc: Steven Noonan , usama.anjum@collabora.com, kernel@collabora.com Subject: [PATCH 2/3] x86: touch clocksource watchdog after syncing TSCs Date: Mon, 8 Aug 2022 16:39:53 +0500 Message-Id: <20220808113954.345579-2-usama.anjum@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220808113954.345579-1-usama.anjum@collabora.com> References: <20220808113954.345579-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steven Noonan Update watchdog after syncing the TSCs of all the CPUs. This is needed to avoid getting TSC clocksource marked as unstable after syncing them. Signed-off-by: Steven Noonan Signed-off-by: Muhammad Usama Anjum --- arch/x86/kernel/smpboot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index f24227bc3220..4b3a03004a1f 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -56,6 +56,7 @@ #include #include #include +#include #include #include @@ -1444,6 +1445,7 @@ void arch_thaw_secondary_cpus_begin(void) void arch_thaw_secondary_cpus_end(void) { + clocksource_touch_watchdog(); mtrr_aps_init(); } @@ -1477,6 +1479,8 @@ void __init native_smp_cpus_done(unsigned int max_cpus) { pr_debug("Boot done\n"); + clocksource_touch_watchdog(); + calculate_max_logical_packages(); /* XXX for now assume numa-in-package and hybrid don't overlap */ -- 2.30.2