Message ID | 20240212154638.995080989@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp810240dyb; Tue, 13 Feb 2024 13:10:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsJTNRNpNuRR4hlgP0IXWPc40JmPaF0gQYt4zBmO/xgDFhUtOMyXWhqB0mjKqlCDrELHIqKIEl5jWQaXj/dnYLI+kG9Q== X-Google-Smtp-Source: AGHT+IE4cJ33YqsGukG+0mipr9C3e0gVCn16b+uoV9ECUmgjjz9UAon8pR2Fy4SotYmmDvP+8mI4 X-Received: by 2002:a05:6a21:3a82:b0:19e:b8a3:e09a with SMTP id zv2-20020a056a213a8200b0019eb8a3e09amr1184097pzb.6.1707858639140; Tue, 13 Feb 2024 13:10:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858639; cv=pass; d=google.com; s=arc-20160816; b=Hxul2OjkTPv2LaTRuVDiFBk/46jsWnPkJ/kMdhHkbQzyoNlemM7jxXf5ZPNix6/0a8 9yRmtYTxW969q7fRDIMFj2zOxM+wFIrI8z2nu8P6dfkQXZVOqhaCkOojzX0W9wz85Yao t0siqdVexf0GaXhxJCFzvgWN53QTvunHs3lsEdHMrqsICdKgltVwq5zbYdJ3BVck7Yk1 vGthedbnPwhxR4XVQV5l73Y1zdb9dQBNwEd4eAqWJk/yvqT+gs53ITeubUMa+weMuDOw /IQE1W0M4XmEPP6ke1vrd54QNf2SFpMxTcm5tWPzjUAt/QPJCswfqwPVFVVQU5JylY2a yUWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=jUZlkCc/jvJdl89X2GtPdPNSmaXo0cCqu9OLjZmb7Lc=; fh=AeQenWznv7W6FjUtRobFrwTi+0tKKKa4VUzXnCDmLEQ=; b=n0F5beK5uiDp1IERY4ewIl2xveaF/r+fp7MkQxAFcDnK4da9rTbBNNL8CgdMn9E+cd ftwMdl7b2I4YYJ3D+TRJ/zLuSfLkcJib6ed2JVgUFLYxgvZH1apYzHC/EL0fp/hPV9vP Du5ayt3zYqPl/uR5llXp9lxl+pFnWbeJ/iAnPDbEnd+gpg9mVV/GyXsBraheNOnpRDkk i1v7J+JUqWDZ2uPChg5AV2I9tJcz1xUHK0u1ownD8ZTP0QKjltjTx8p8N+y5kXl7nd4X 9HwJ7yWI1AkB86kOPeIun2tv4gRKpba6vj9f5LuFvLnENW0OiZCbouO3A8LwcC1nB7ek NaYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QH1F94UV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCWfJzL+sozmIDoHASNun7JDTyZTjN7QYU68WziFEptnQ3PIivsqj01znZ30VxwD2Qssp9gfrVPzbUiVkQG2Zg5NbxFi3Q== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o13-20020a62cd0d000000b006e0258617basi7229097pfg.29.2024.02.13.13.10.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:10:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QH1F94UV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64264-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 80EC328D2EA for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 21:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46CD869D05; Tue, 13 Feb 2024 21:05:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QH1F94UV"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="7HnKYKGS" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 119B86216B for <linux-kernel@vger.kernel.org>; Tue, 13 Feb 2024 21:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858298; cv=none; b=L/opfwcF8Ad6EylenNWTLU0tEWT0G/JH6xkA5wEYUckrGgdM7MiQuO+CC4FkCy/sfWg32qOi/3c/pEuVVF1BDzfZHsPOexk2ZlrRBpwNE/7WLta9FCFmTisH83aAz0NQiDm+e+a1EtaaOfe/Jn4Jz/4IynPntypt3trPbvDAdcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858298; c=relaxed/simple; bh=bZ3Lsv6X9bv7EA18HKzbW7ZxzwC4tsHSaKq0hcHmERE=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=m7CFgl/ArDWg70wj5YOGp0vc9eSVOVy1nHarJJXeX+7wPFNlS4IynYpqrkkDZelAJZSN8s5KgJNWuSRVoOVTgAmL8i/CKIvvbrVbhh7krYvQrqsd09Ob9SMAEgp+4BsDumnKpY0RpiQA0l7hSGDKvK5otIG4UOIai4fVPFfcMLA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QH1F94UV; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=7HnKYKGS; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Message-ID: <20240212154638.995080989@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858295; 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=jUZlkCc/jvJdl89X2GtPdPNSmaXo0cCqu9OLjZmb7Lc=; b=QH1F94UVw+6NVB+HHB9GcZL3lwyRVW0EdwWdQQaiP626+rIiROmZf1q8IpbV8uwAjZZA0x P2RU2UIycP8y1OF7TcxCB239yreBwQEBgWYB70IALNV1QiKMq2LPCp9aZVLYWql/YrSY4y Z6PPEnEIdSyVhc33dlL+2KCQXiuq2Qc2+aVJ5Xb43HNGjw+fhhIg/8G7axPTOUq8nYZYMP nGqo7zEKv8U3lDMW8UyYQ2Dy3JxUBIg+ysNVP/2HxfkXd3ASbGtgNEFdAGZYK9EA+1aqVy 8ntnAPNbdVy+VYJ2F/4NVWcn8CwTUBqK8N1RAOcbY5DyZ6fUO9X41l3mn7NmnQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858295; 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=jUZlkCc/jvJdl89X2GtPdPNSmaXo0cCqu9OLjZmb7Lc=; b=7HnKYKGS92RlEqyxHgo3cF+p3yPiy/0rnPeURo0ExhLCpJfj0swFqXli3TIhzP/mgYQ/43 XVbKCLa+Vn3zmGAA== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: x86@kernel.org, Tom Lendacky <thomas.lendacky@amd.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Arjan van de Ven <arjan@linux.intel.com>, Huang Rui <ray.huang@amd.com>, Juergen Gross <jgross@suse.com>, Dimitri Sivanich <dimitri.sivanich@hpe.com>, Sohil Mehta <sohil.mehta@intel.com>, K Prateek Nayak <kprateek.nayak@amd.com>, Kan Liang <kan.liang@linux.intel.com>, Zhang Rui <rui.zhang@intel.com>, "Paul E. McKenney" <paulmck@kernel.org>, Feng Tang <feng.tang@intel.com>, Andy Shevchenko <andy@infradead.org>, Michael Kelley <mhklinux@outlook.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Andy Shevchenko <andy.shevchenko@gmail.com>, Wei Liu <wei.liu@kernel.org> Subject: [patch V3 03/22] x86/ioapic: Replace some more set bit nonsense References: <20240212154529.402604963@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Feb 2024 22:04:55 +0100 (CET) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790819580413864586 X-GMAIL-MSGID: 1790819580413864586 |
Series |
x86/topology: More cleanups and preparatory work
|
|
Commit Message
Thomas Gleixner
Feb. 13, 2024, 9:04 p.m. UTC
From: Thomas Gleixner <tglx@linutronix.de> Yet another set_bit() operation wrapped in oring a mask. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- arch/x86/include/asm/mpspec.h | 3 --- arch/x86/kernel/apic/io_apic.c | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) ---
--- a/arch/x86/include/asm/mpspec.h +++ b/arch/x86/include/asm/mpspec.h @@ -86,9 +86,6 @@ typedef struct physid_mask physid_mask_t #define physid_set(physid, map) set_bit(physid, (map).mask) #define physid_isset(physid, map) test_bit(physid, (map).mask) -#define physids_or(dst, src1, src2) \ - bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_LOCAL_APIC) - #define physids_clear(map) \ bitmap_zero((map).mask, MAX_LOCAL_APIC) --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c @@ -2494,9 +2494,8 @@ unsigned int arch_dynirq_lower_bound(uns #ifdef CONFIG_X86_32 static int io_apic_get_unique_id(int ioapic, int apic_id) { - union IO_APIC_reg_00 reg_00; static physid_mask_t apic_id_map = PHYSID_MASK_NONE; - physid_mask_t tmp; + union IO_APIC_reg_00 reg_00; unsigned long flags; int i = 0; @@ -2542,8 +2541,7 @@ static int io_apic_get_unique_id(int ioa apic_id = i; } - physid_set_mask_of_physid(apic_id, &tmp); - physids_or(apic_id_map, apic_id_map, tmp); + physid_set(apic_id, apic_id_map); if (reg_00.bits.ID != apic_id) { reg_00.bits.ID = apic_id;