Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp301136lqb; Thu, 23 May 2024 20:37:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/xWw6Ilw3/J4GGR039RaBTjinZ+YnxUAlBd5WpAQdNhdzkO1sTwUZnlwq3QNkbSUvtfmUerRx42vsadkWrg1iNfQ8HYufd4eOI3LkCg== X-Google-Smtp-Source: AGHT+IEuM4/5PlAbmEnFhiocxe8XB9UX4GDoernxxnNNMigkWRRQbK7xUvZsamLy0BUeKLORmbze X-Received: by 2002:a05:6102:5f44:b0:47e:cdce:b760 with SMTP id ada2fe7eead31-48a386227e6mr1311012137.22.1716521828150; Thu, 23 May 2024 20:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716521828; cv=pass; d=google.com; s=arc-20160816; b=YP5TL+sv/sG/j5Tp1SG5qBbPyZ1UrpaUgNnj+2CL6EYwcbQtfZXB9B1WpNhNUbCnP5 IhrcY7LtY0Zwj8ex2SdzLF3L2MgppHIFoDdy3ukP2e18qKjHYAunVqo8/sZGh2JSlUqZ UOExZXvft6jDIdiV+LVOC/CIjEaryX2tv7XS653AIawc+yjQZ7f8EUROow1RdtG3hVm9 UJ8tzg9A+KTjtuQcUwmbRUFl1wS+xsBNNkzNczn9IZIGrGctzEph4qw8RPoTfDjIRAG/ qqJ1/tNkxoPsC2j6ihV/YJWPJI4Xn/MT+1dB5pp5YUWImRbK0k8IFtXrkNCq0Cq4MDMH bBkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date :subject:cc:to:from:message-id:dkim-signature; bh=KZ8llW7PPo2JKBuxKIsoxtxbFEW9rp9tvBG99x4q/wI=; fh=MUzHKLJ1EFLCvIKwCCyZDjYtOTioDcb+EEtJ0GCWcsc=; b=lNsOyXbAuo00ufaRz+dfm+YfKj8c2q34CRHkJfbNmQ+yq+xtkKlMdWY5RpMzSLphhN 6IwBiPXb/tRrh+zsE5/CGSj8brG4Cifbp10TpNI5gmaBqeEQae5nrJAJryKw2Px6sz36 RQ67IF+7oAo62WPneU/R25Vq0O/gOrVIaugMvYqcafjbGoP6IqAk2lKZyJhix6Rdu8O1 uGX1Z0/SNAT79lOzdDOgmN9KF7NT59CvAJ/Ii/UAejnAIkw4j+gSjoN01jqklZexXb4/ A1FNurT/s92ncvlk/HAC8cs5xPnaukBe0a7yZPKrPzKMEGHWgBHWCc1Q9SVendkf5VtK oXNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b="Hv/L3+R3"; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-188260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188260-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18a6939si9454311cf.391.2024.05.23.20.37.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 20:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b="Hv/L3+R3"; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-188260-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188260-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D913F1C21FA9 for ; Fri, 24 May 2024 03:37:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 274973B2A1; Fri, 24 May 2024 03:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="Hv/L3+R3" Received: from out203-205-251-66.mail.qq.com (out203-205-251-66.mail.qq.com [203.205.251.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE36823769; Fri, 24 May 2024 03:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.251.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521791; cv=none; b=rX5UjMJkgRs6iAhtUR87QiW3ndgyN6IrUeglFaO26l1jJ4L/0b1HwkahrqGITPWx5g/v6IMgRKLQ8NbS4ffpjPSnZcHCSy0++Relw3GpcfDQrYb4x/49TbLocvMktLi4kh5407+l1zhNZ1d22946qJjBhbT44P5OD0B4t1rf4kI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521791; c=relaxed/simple; bh=ek6UmWLXK8nYduHntVSxP/dsgz6IetPMTwjA0Jx7W4Q=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=tTwSGF5L2YWR2zCwC7yG4UHgQ1JP54nRHEzGNA8psSTWhq2qStzmejBv5VuiZ5CRfqHrrvG3yyCNgcM3R3JwKOm45bhIct8xVlOxvrWbdqP3wEGqPV4LQZyUhuHWY7/4RfVWWVe2OD72TenTo+Fmkktjeb8scGiLQVmyjw7TNnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=Hv/L3+R3; arc=none smtp.client-ip=203.205.251.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1716521781; bh=KZ8llW7PPo2JKBuxKIsoxtxbFEW9rp9tvBG99x4q/wI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Hv/L3+R3eDM7YBWaB67KaJaBM0oYm4RIWRxInfhomKuM5YzIiprXmr8la56jl42ql 38qhO0nM6zGXsLKIaKCkyHyBUgKiVKZcnk+WzMp8HY6BgPairH8YITjGxTSkbLTySo K66WJBdXznEvuSAd4u1+0xVuekGIFpSiDGfJRyH8= Received: from cyy-pc.lan ([240e:379:2259:4c00:b652:79f2:d4c3:c8a8]) by newxmesmtplogicsvrszb16-1.qq.com (NewEsmtp) with SMTP id 90C8A481; Fri, 24 May 2024 11:36:12 +0800 X-QQ-mid: xmsmtpt1716521778t5i4qy2rz Message-ID: X-QQ-XMAILINFO: MmpliBmRb3iCDSzsEAV2QCRH5vaNsl79saeANBHcFPSmOQXivvawGLedK6zLPr C6mSD1uDd5uzWWi/YulJLDc6Pv1YEnWDxHt4Q4RMEjMcQ6DREjst3OQ50ccNhNHM6FgOCsRMidEN 9d5Z1MN9U3Q0oZj1mFNak0IlCin00nFFFRlFoIMVSYP7xIWFYnhT86cetkL5bZmLw1ZubkdPOkOu AA0K5pmNaEuyVTmxrl8mJHkY1I30DjBXy5n7hHN/zGkq7HrdcXELbBfDfabAoXlX5mBONAh98Jg5 0c/q8wI1fMwYEOfcNFVs0M1nAJwCGzstvrgWFgyb2Auf6S2FjwkK/PutecdhGw+dxsmbB6Figlz4 tmvIGL/NDEWmVkuYayN9DjjZX7i+c2fd7GIcZsX3Q495Q3UVQDyQ5fMMVFCWONEZ80oFbop0PXEI 6Yngro2Hi2QXfImfUjlw1xdvhrQIDQCe8/vZQIiLxUZ6+o1pOxtshHt/jb6iVFb3E6I9q5OTJf8y uZ9mR6XiwE84P8o6Mmq02Vc3K1SthZJPSzssHIBeoSWXtzjPKkwqsH80IwI8igtOn1W6Z4uBERu/ TQjvcIHWMLhuquWvRiisgE47b9IVjH1lKDkfJDQjsyQrY68NulOIbWvdg88WUHtgpfTQBgKH2+E8 BeHJp4hIbK1IiOH37zNW5i7xQhZ3EdYFFl4Lp5jNlDwIZ18DnJJgmJRsp1L81QjXPv9HFdqjb1Qt dnsI5Jj72QFS3A+mJMTyt8Vt7iiEgk0oW8Bnt5fCTKK4Gku9MU0HMYqRfmYwduvzL9aI1tljLnmu V6AAxUCpEVsrawdKD3yFfwwZOQXm4xik9Q1iNN6msSOTBJ0IixkJb9Qe4WoHUSgyiMrtIXuuTkRa xVQcH3k4SWOYt+cKyubf3VDDP5UqMN3+mFkAIblOdAQ6ElzEpJbpNxdwotl8BDWzA9vGh3KlFFWm 8Ma06Pq55hrXIoB7tHKGdq7H/Ym+uz9v2GBXmsyeRBiB0wZgMbxaByOMqJGGFtoHEVkBaY3eyc6r Ij43nubzE6o+1kO38R X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Elliott Hughes , Charlie Jenkins , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Evan Green , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Conor Dooley , Andrew Jones , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Yangyu Chen Subject: [PATCH v2 3/3] RISC-V: hwprobe: not treat KEY_CPUPERF_0 as bitmask Date: Fri, 24 May 2024 11:35:59 +0800 X-OQ-MSGID: <20240524033559.298935-3-cyy@cyyself.name> X-Mailer: git-send-email 2.45.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since the value in KEY_CPUPERF_0 is not bitmask, remove the wrong code in hwprobe.h. Signed-off-by: Yangyu Chen --- arch/riscv/include/asm/hwprobe.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/include/asm/hwprobe.h b/arch/riscv/include/asm/hwprobe.h index 630507dff5ea..f24cad22bbe1 100644 --- a/arch/riscv/include/asm/hwprobe.h +++ b/arch/riscv/include/asm/hwprobe.h @@ -20,7 +20,6 @@ static inline bool hwprobe_key_is_bitmask(__s64 key) switch (key) { case RISCV_HWPROBE_KEY_BASE_BEHAVIOR: case RISCV_HWPROBE_KEY_IMA_EXT_0: - case RISCV_HWPROBE_KEY_CPUPERF_0: return true; } -- 2.45.1