From patchwork Wed Aug 9 19:12:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 133460 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp3034908vqr; Wed, 9 Aug 2023 12:48:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZSaMR/QP0T3SmB2YeaJhGKLHgKnv15ebToAEKN6tpmyQhSmNNoBaccfNuqKZzFaTAAmPq X-Received: by 2002:a17:907:2c68:b0:991:d5ad:f1b1 with SMTP id ib8-20020a1709072c6800b00991d5adf1b1mr68143ejc.47.1691610536814; Wed, 09 Aug 2023 12:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691610536; cv=none; d=google.com; s=arc-20160816; b=OSSbJPo3CYDZaYoRpw0lkao6JuRtKDSPMnDk7ImTDWc4UW5J9j7ScNQTBWIlt2jF/8 YPlJCICTVbUs7VOpPti5c7sA5ZAjWn02myi31zfX5PY0EBCVDP4GYap+dysvoPiA/J0n 09vqbtMmRfjtm+wtAUJsCIKxqPDZ9orMzUeVijdIZQbEEo+YFGAHnG3qvSA+6O1P8ZHm 6AxoGB38STW+JLOVLfFrv0FFNITXBXKGAtLUAZUVvKzYpGiy9awGuSXmMHEXAzbecXXt Uzdt9grl3oRtoOmco/j2jvXqEQZE8Fdodq+IXKtP7Vfjoat3hYWj0DNkpboPa23/X9Ub BzOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=Tia1jqYKGlgf3olcWvywz3xugSQljuggPOwjvrMj3ek=; fh=jBwjuriIPWA1lnCf5oMMiNAPpgGE0iGPmBzZMsd85oQ=; b=w5Rv7tXr2GO6lNqcEc4M85CYM/tH/dnynSfKvxfbRZTYB3pvaqXJkFTgHWpuyMyw+8 ysO1q1BDfUhJbWhvWFyxK9eMTHEPh3iOhhtCrb2Pf0kPsrBCxg+9PUFwcuAjhyNZ7zCv q6/9ITdP3EIACkPzVFok0OiIY75BZmMU0btqxa1UgAvP9b9ZWMwvQ9bHniTdQWg6ICFK KC9L2fZn4p9jOlLiE5b9c+iGfkJyn+7PErwm5H2j1DIKHle/Pg6MawdElTFIEWrD9RrX Cj/LmCKTbc+HxPAW7E5G5YmeKj426rQkn3CE3eFHfcrdWYd6RhtDtGb4pjPilBvq3shx ZVTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nxL4++3a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a17090611c500b0098dafe075ccsi3863398eja.97.2023.08.09.12.48.30; Wed, 09 Aug 2023 12:48:56 -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=@linutronix.de header.s=2020 header.b=nxL4++3a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233251AbjHITOI (ORCPT + 99 others); Wed, 9 Aug 2023 15:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233152AbjHITNf (ORCPT ); Wed, 9 Aug 2023 15:13:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 517BA2708; Wed, 9 Aug 2023 12:12:49 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608350; 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; bh=Tia1jqYKGlgf3olcWvywz3xugSQljuggPOwjvrMj3ek=; b=nxL4++3amwjsSC++y/EZ9BuGXSX4fKBKS9NydleGTKZIV3y9v7IEW+M5O3hR9BAAblbBOu lAojGIinK2jCXjoPt4lh1uDGQmXpsDL2lScze62o/8Z4FgX6hi6Hc6khtnMm42x8yd5LOW 0BsT32LJi1axJtZG1QnGNc0YcbKtN7ui+QnbVIPSo4rfJO3PMSj55KdO3zUjcAKA2be7jg SomeSeB1a7LFLwTyR+1pAN/9n9KhewgZBv4PnJycloZYtBMOMsLkX099/B11J00ar4Tm4J RDxk74PugX4X1YAJxUjOKNfjVpcgPZ/qagz2UI4zm5xWkfBZEYF9lgRAHp/kCw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608350; 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; bh=Tia1jqYKGlgf3olcWvywz3xugSQljuggPOwjvrMj3ek=; b=Q3j14lidQU8hK244BQ1lPqsEaFhdAG3eheCrIp53KTNZZJX1i84Bja4h8axX9MkIH/fubj +QCQSKXJYFp8rQAg== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/cpu: Remove unused physid_*() nonsense Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160834995.27769.9685465864706751781.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773773024212217706 X-GMAIL-MSGID: 1773782209866688300 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 13d88dcb1a1cdeaaea8362e1a9d9540e2b37ef76 Gitweb: https://git.kernel.org/tip/13d88dcb1a1cdeaaea8362e1a9d9540e2b37ef76 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:39 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:15 -07:00 x86/cpu: Remove unused physid_*() nonsense Tons of silly unused bitmap wrappers... Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/include/asm/mpspec.h | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/x86/include/asm/mpspec.h b/arch/x86/include/asm/mpspec.h index e90ac7e..fa5e24a 100644 --- a/arch/x86/include/asm/mpspec.h +++ b/arch/x86/include/asm/mpspec.h @@ -87,13 +87,7 @@ struct physid_mask { typedef struct physid_mask physid_mask_t; #define physid_set(physid, map) set_bit(physid, (map).mask) -#define physid_clear(physid, map) clear_bit(physid, (map).mask) #define physid_isset(physid, map) test_bit(physid, (map).mask) -#define physid_test_and_set(physid, map) \ - test_and_set_bit(physid, (map).mask) - -#define physids_and(dst, src1, src2) \ - bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) #define physids_or(dst, src1, src2) \ bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) @@ -101,29 +95,9 @@ typedef struct physid_mask physid_mask_t; #define physids_clear(map) \ bitmap_zero((map).mask, MAX_LOCAL_APIC) -#define physids_complement(dst, src) \ - bitmap_complement((dst).mask, (src).mask, MAX_LOCAL_APIC) - #define physids_empty(map) \ bitmap_empty((map).mask, MAX_LOCAL_APIC) -#define physids_equal(map1, map2) \ - bitmap_equal((map1).mask, (map2).mask, MAX_LOCAL_APIC) - -#define physids_weight(map) \ - bitmap_weight((map).mask, MAX_LOCAL_APIC) - -#define physids_shift_right(d, s, n) \ - bitmap_shift_right((d).mask, (s).mask, n, MAX_LOCAL_APIC) - -#define physids_shift_left(d, s, n) \ - bitmap_shift_left((d).mask, (s).mask, n, MAX_LOCAL_APIC) - -static inline unsigned long physids_coerce(physid_mask_t *map) -{ - return map->mask[0]; -} - static inline void physids_promote(unsigned long physids, physid_mask_t *map) { physids_clear(*map);