Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp271335rwl; Thu, 3 Nov 2022 23:28:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7NoANga7GnTRrAnjdSjp438Rhp2Jbp1q8H01r3eqwNhrwsbFIQ69zErGVVoJI5jLJGOf5b X-Received: by 2002:a63:3347:0:b0:470:1a94:4bf with SMTP id z68-20020a633347000000b004701a9404bfmr7601832pgz.374.1667543339441; Thu, 03 Nov 2022 23:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667543339; cv=none; d=google.com; s=arc-20160816; b=UlZR2L7CRRuFJbG2tXOkC8jf8o6QGEGycOO7KVEuzmW35X5PAnU7g+GWVrUptd3wl0 F+LiAvPh68whk8UNGa+d501F/sKY7n0L6XQfO1Uzse6DneWQPBNT9N8V4Jw68ooc9WqZ 51AYU3yv+kAKEJK6piPv3rlRukNUYlFulAlc0W330R/tGqM1Y7GG0jTwJiPf9GCwdQbo dRf0Dncf7x4fwnIC2txnhu87ni37uedXSDOL9BQRtUxlPa5JdRSijqpDNQUGJCjCvkTJ CFYTleu7kQgClfcgBuszN07pNpW1hrjJxcgOck+IWs1ymZAOWsms+TYf1JBbATYPrLqf /VNw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zhu8jnKVSyUET5dWBbeizhKy1SMpRgjknQ38ay3i9pY=; b=P1falvOU2rRtl6FsWgJSJQE7RJxjzwllsiUSPSQif4g635rO6KbiDc+yj+N7WYza4U iTFLDIjyOZCpwrjB3f3HUcAPs54h+1uIRjENmshKYImbpe+yEKDxgG7wb3+IkPaD1TN4 uRSGEpY4c7HvzsKOQhQSamaOh0fEVWaREqRVOsa1v0aWJPabT3K12N5D9YbI0SfVMetI I5jfhtNP5Ebo3OOoJlpOGuVAbY0Vx+CI/il65Z4yQL+mer0AaDCYJZjXJ4K67KAt2Tx1 Dy3nCPXbXb+C1Nr6LLoSjjb049ljYua/OTqi1VhFEuo55FBINJ2w0fVooXYQjV7AiEsc h9dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=covwzkds; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a17090a970c00b001fb706e96afsi2226484pjo.182.2022.11.03.23.28.46; Thu, 03 Nov 2022 23:28:59 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=covwzkds; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbiKDGRI (ORCPT + 97 others); Fri, 4 Nov 2022 02:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiKDGRG (ORCPT ); Fri, 4 Nov 2022 02:17:06 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D25F28E03 for ; Thu, 3 Nov 2022 23:17:04 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id fn7-20020a05600c688700b003b4fb113b86so2574956wmb.0 for ; Thu, 03 Nov 2022 23:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zhu8jnKVSyUET5dWBbeizhKy1SMpRgjknQ38ay3i9pY=; b=covwzkdstwrYZ2G7OGrFQYxKlY30OW2v5rlDRhhupowlVD65ej46/o9SO1UinrJ3/m 0lzcsO8YTJZmr/8SS9w4G7XV3IkmHQcJPGZbAe/TLjJ5KTJK85/W6uuk7h6kTDoQj92W ApAWWRRkpDXzKGV9t9o3idyzMUpNFaWAZu9DuTUUy6nrTakQB0q5wzB+k2CelDXa6IB5 2FO5BoKxhA2bpTh7AZA9bEYA3HeY+XOxsUwYP4XXKEpXY21QhzIYtSm/7JtZ8pYOY/Ta +TNovCnwrRY7TDHWx4Ppwn5BGKQJ1qdrs6RhX5fjH3YY+C3XZRqQmGpNg1DWvjpAr/EE Kv2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zhu8jnKVSyUET5dWBbeizhKy1SMpRgjknQ38ay3i9pY=; b=AxUc2YIyK6eh+n7DA86YAJ4n7ZDHehKvEB+/QhSGE6LBtGEjByqBl2n8LSp9Xqowa3 QVFOuQzcs4eTCG3ZQvyDuD1QVFkwCnJ250Umm7t0lcZ76Gu4I+fVJty/vUm5tZOoR6zg Si1auBfejqVZHBLW9HPrbcZYu/2OA+X4YLnQR5B3nAU6AffgPEme8ojP4mdDDmqCkXqU HzrXt6R3jaJIdkj2e38RCv2aR2dp1Uf/hAM0oXoCt9oA6op3MAU6aNqP7abAE5YAYMMo z12ieQv0jis8QAY0pfHqi8OZHHAxLMqwpRQVA78FfrIIUo3wfSs8zYlXD7I9dtIAwTQE O1QA== X-Gm-Message-State: ACrzQf3bSDhI6GMoa6exY6JOvT+lzyiKE077K7quuWEF66uXVHDbnAor ThNQS/QRZjI3FNZJuIDYWbaYV9dcCufYzQ== X-Received: by 2002:a05:600c:1e8c:b0:3cf:55e7:c54f with SMTP id be12-20020a05600c1e8c00b003cf55e7c54fmr27323841wmb.61.1667542622808; Thu, 03 Nov 2022 23:17:02 -0700 (PDT) Received: from usaari01.cust.communityfibre.co.uk ([2a02:6b6a:b4d7:0:c7c:f931:dd4c:1ea6]) by smtp.gmail.com with ESMTPSA id m16-20020a5d6250000000b00236860e7e9esm2487658wrv.98.2022.11.03.23.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 23:17:02 -0700 (PDT) From: Usama Arif To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux@armlinux.org.uk, yezengruan@huawei.com, catalin.marinas@arm.com, will@kernel.org, maz@kernel.org, steven.price@arm.com, mark.rutland@arm.com Cc: fam.zheng@bytedance.com, liangma@liangbit.com, punit.agrawal@bytedance.com, Usama Arif Subject: [PATCH] arm64: paravirt: remove conduit check in has_pv_steal_clock Date: Fri, 4 Nov 2022 06:16:59 +0000 Message-Id: <20221104061659.4116508-1-usama.arif@bytedance.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 arm_smccc_1_1_invoke() which is called later on in the function will return failure if there's no conduit (or pre-SMCCC 1.1), hence the check is unnecessary. Suggested-by: Steven Price Signed-off-by: Usama Arif --- arch/arm64/kernel/paravirt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm64/kernel/paravirt.c b/arch/arm64/kernel/paravirt.c index 57c7c211f8c7..aa718d6a9274 100644 --- a/arch/arm64/kernel/paravirt.c +++ b/arch/arm64/kernel/paravirt.c @@ -141,10 +141,6 @@ static bool __init has_pv_steal_clock(void) { struct arm_smccc_res res; - /* To detect the presence of PV time support we require SMCCC 1.1+ */ - if (arm_smccc_1_1_get_conduit() == SMCCC_CONDUIT_NONE) - return false; - arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_FEATURES_FUNC_ID, ARM_SMCCC_HV_PV_TIME_FEATURES, &res); -- 2.25.1