Message ID | 20230717223223.194942624@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1399120vqt; Mon, 17 Jul 2023 16:17:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFaV+UiVoS9VYojFHVII9hFwKI6j7ZBPcwPc477m2Ak1J9lSxf7ZSDD1Wuk7bQfwCpPXJ9p X-Received: by 2002:a05:6402:68e:b0:51e:17d:a1c3 with SMTP id f14-20020a056402068e00b0051e017da1c3mr11812380edy.32.1689635851478; Mon, 17 Jul 2023 16:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689635851; cv=none; d=google.com; s=arc-20160816; b=ihzqMOtCjsg00oZyzCvmDWWRA7luUkk4sQt0N1BRPccAMmJdtGESLW6SgS1Gv1Z8A8 cREMXnO8cWL7GozVgUtGBiR5twlOQ6njWMd2B49Rp4PtJC9zoG4g3MHKhbh1wc2aXk22 33B5L+EZ9Du5ykw8FXCpw6vRdDbSUHxpmo5O/wL8+erqPqcaexRuky/BMNEl4wJeeay7 4K8ONX7wPEboXRwMvZzjywhELoU0ANykcyP7oq9GeX+km14rsV0w4Cz5aecfP1WXjXB5 L3IYQkLwjOLKl4i6fIQM54kyf4JXdMohkS/bkgEox9N9XmCRfDQBhStMV9VCLkifVO6X Kxlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=wpfpHOFENc3IPULGB99WSPXmdgySC90OqR7vmMwU8qU=; fh=MJzvnywV9/WrN/ASipmGkNx/7jKFHnq83nsgXe/obdc=; b=V5UO4iKOyMYi5tZc+f6vRsHrROdCT3/bzCqiq9knQEJ/0GDX/b/6bG85KgpxQ8+URQ zDkFZ0As+bg1DVr9elP4cSca+vE+uMmwksvoBpj4ZF9lcZL8WMzcOLaf+kYDeDSXIQ/n 1dAn+aZXyt0NwEtz47QsFsqlp703L+Kp3WLPQ/4Vp8pqrtps7ie2lyunPrkWP5iwinxc dfF8HkLzg4rqSgT6xVAPfOB7eR9V0CeelkJMrzNrcNrteNlWUsULtd8FQo2qeWjUTIxH qmAV8dPEiMnWboBGwirXSCyCB9U0+QbTkMDLqsOP6Y2I6jxDcBHbv/FPuI3Wm63yViwx 0cEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qAJH9ZIn; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ZwLQueWk; 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 bf22-20020a0564021a5600b0051bf8f889dbsi302512edb.448.2023.07.17.16.17.08; Mon, 17 Jul 2023 16:17:31 -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=qAJH9ZIn; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=ZwLQueWk; 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 S231266AbjGQXOv (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Mon, 17 Jul 2023 19:14:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231186AbjGQXOo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Jul 2023 19:14:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B887E12D for <linux-kernel@vger.kernel.org>; Mon, 17 Jul 2023 16:14:38 -0700 (PDT) Message-ID: <20230717223223.194942624@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689635677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=wpfpHOFENc3IPULGB99WSPXmdgySC90OqR7vmMwU8qU=; b=qAJH9ZInd6QS57kqU21jjx7PhuqHsepVuGll5ofOEwQWJL1/sFLOnjZ34EBGsJwJWbKvpY wv+zh4cBYwLIzYXEPvnhIHZg8F86wcIdAl2xh8iRVq8plyF22kHCi4ZU5rD9mh8u3+yc2b BcKn8m/oiYwct7zjwIhDevHX2StrtmZzarP6GQkFUqkwqnZTYA+OqDymMH05RTuF2sGRk6 aiqek6XxC65mA9bJ3Klc1FP49ItANn3puhn0SNDgV4UcNPTKDCzKQNOF0vdJGr65iPfrHN bjDQkqSbexkWzcb/BN7wQYYsrxxFtUXSHylPl74uFG92tSDMrZ6GD6rfXRnK5Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689635677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=wpfpHOFENc3IPULGB99WSPXmdgySC90OqR7vmMwU8qU=; b=ZwLQueWk3iuye6RCxPL7GI5eQfeQLFp/Cmp+9F4jdovHOSbJt2O3OGatSO5ru7KKSf09oo qoIwD8KcUbsW+VBA== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: x86@kernel.org, Linus Torvalds <torvalds@linux-foundation.org>, Andrew Cooper <andrew.cooper3@citrix.com>, Tom Lendacky <thomas.lendacky@amd.com>, Paolo Bonzini <pbonzini@redhat.com>, Wei Liu <wei.liu@kernel.org>, Arjan van de Ven <arjan@linux.intel.com>, Juergen Gross <jgross@suse.com> Subject: [patch 02/58] x86/cpu: Remove unused physid_*() nonsense References: <20230717223049.327865981@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 18 Jul 2023 01:14:36 +0200 (CEST) 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771711602511947998 X-GMAIL-MSGID: 1771711602511947998 |
Series |
x86/apic: Decrapification and static calls
|
|
Commit Message
Thomas Gleixner
July 17, 2023, 11:14 p.m. UTC
Tons of silly unused bitmap wrappers...
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/include/asm/mpspec.h | 26 --------------------------
1 file changed, 26 deletions(-)
--- 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);