From nobody Wed Dec 17 23:27:15 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16F1FC5ACB3 for ; Tue, 21 Nov 2023 08:43:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbjKUInW (ORCPT ); Tue, 21 Nov 2023 03:43:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKUInU (ORCPT ); Tue, 21 Nov 2023 03:43:20 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF6EAC; Tue, 21 Nov 2023 00:43:16 -0800 (PST) Date: Tue, 21 Nov 2023 08:43:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1700556193; 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: in-reply-to:in-reply-to:references:references; bh=tQQaceoHAxtmKdnMRuCtP57MdrImWR4O7cyjfd4snZo=; b=wfgQeK43WNeZirdINalDW87tmwdMhudNQJGoHT8Rf185mLFGanYCDU456oBr5rkC/dV5hE 9IKXqIaRWuaIzFXgXy2cln+IF9VGcfR0qy+utEnu5nLbR6uNq5pb7rqjdDln/ZIhYo8yFF xhz+lcakyROU/TUFppm1kDJI/c6bCWT7H389BS0MEM8c95rPhvWSlvSn8a6DYGYrlFM7yR gU9ebd4zEWhEQyTl0CkwMMUefqnMX531bPA1ymW7vjM46i876tESwZmJeFd0YSwZ52QFDx OB7Y82vDmu6KqG3wQtqIh12NGFI6DXGxYM3Vd84ad/uxJbhRm40XQnFZ3PHFlQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1700556193; 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: in-reply-to:in-reply-to:references:references; bh=tQQaceoHAxtmKdnMRuCtP57MdrImWR4O7cyjfd4snZo=; b=YMKB5GR+f3Zcy1acmp3N4j/uo2az+5X6dSqqCynuA71Cls5cPHe0rkNW0M0mqcNjBV3vAp W5u/LhCSYMrHNzBg== From: "tip-bot2 for Andrew Cooper" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic: Drop enum apic_delivery_modes Cc: Andrew Cooper , Thomas Gleixner , Steve Wahl , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231102-x86-apic-v1-2-bf049a2a0ed6@citrix.com> References: <20231102-x86-apic-v1-2-bf049a2a0ed6@citrix.com> MIME-Version: 1.0 Message-ID: <170055619305.398.15160547341395358366.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: 7c9158231f42e574f8290e15ea56d108ca49e583 Gitweb: https://git.kernel.org/tip/7c9158231f42e574f8290e15ea56d108c= a49e583 Author: Andrew Cooper AuthorDate: Thu, 02 Nov 2023 12:26:20=20 Committer: Thomas Gleixner CommitterDate: Tue, 21 Nov 2023 09:37:30 +01:00 x86/apic: Drop enum apic_delivery_modes The type is not used any more. Replace the constants with plain defines so they can live outside of an __ASSEMBLY__ block, allowing for more cleanup in subsequent changes. Signed-off-by: Andrew Cooper Signed-off-by: Thomas Gleixner Reviewed-by: Steve Wahl Link: https://lore.kernel.org/r/20231102-x86-apic-v1-2-bf049a2a0ed6@citrix.= com --- arch/x86/include/asm/apicdef.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/apicdef.h b/arch/x86/include/asm/apicdef.h index 4b125e5..ddcbf00 100644 --- a/arch/x86/include/asm/apicdef.h +++ b/arch/x86/include/asm/apicdef.h @@ -20,6 +20,13 @@ */ #define IO_APIC_SLOT_SIZE 1024 =20 +#define APIC_DELIVERY_MODE_FIXED 0 +#define APIC_DELIVERY_MODE_LOWESTPRIO 1 +#define APIC_DELIVERY_MODE_SMI 2 +#define APIC_DELIVERY_MODE_NMI 4 +#define APIC_DELIVERY_MODE_INIT 5 +#define APIC_DELIVERY_MODE_EXTINT 7 + #define APIC_ID 0x20 =20 #define APIC_LVR 0x30 @@ -430,14 +437,5 @@ struct local_apic { #define BAD_APICID 0xFFFFu #endif =20 -enum apic_delivery_modes { - APIC_DELIVERY_MODE_FIXED =3D 0, - APIC_DELIVERY_MODE_LOWESTPRIO =3D 1, - APIC_DELIVERY_MODE_SMI =3D 2, - APIC_DELIVERY_MODE_NMI =3D 4, - APIC_DELIVERY_MODE_INIT =3D 5, - APIC_DELIVERY_MODE_EXTINT =3D 7, -}; - #endif /* !__ASSEMBLY__ */ #endif /* _ASM_X86_APICDEF_H */