[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZUVU6tKmhL1VmcbT@swahl-home.5wahls.com>
Date: Fri, 3 Nov 2023 15:15:38 -0500
From: Steve Wahl <steve.wahl@....com>
To: Andrew Cooper <andrew.cooper3@...rix.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>, Steve Wahl <steve.wahl@....com>,
Justin Ernst <justin.ernst@....com>,
Kyle Meyer <kyle.meyer@....com>,
Dimitri Sivanich <dimitri.sivanich@....com>,
Russ Anderson <russ.anderson@....com>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>,
"K. Y. Srinivasan" <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
Wei Liu <wei.liu@...nel.org>, Dexuan Cui <decui@...rosoft.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Rob Herring <robh@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
linux-kernel@...r.kernel.org, platform-driver-x86@...r.kernel.org,
linux-hyperv@...r.kernel.org, linux-pci@...r.kernel.org
Subject: Re: [PATCH 2/3] x86/apic: Drop enum apic_delivery_modes
On Thu, Nov 02, 2023 at 12:26:20PM +0000, Andrew Cooper wrote:
> 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 <andrew.cooper3@...rix.com>
Reveiewed-by: Steve Wahl <steve.wahl@....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 4b125e5b3187..ddcbf00db19d 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
>
> +#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
>
> #define APIC_LVR 0x30
> @@ -430,14 +437,5 @@ struct local_apic {
> #define BAD_APICID 0xFFFFu
> #endif
>
> -enum apic_delivery_modes {
> - APIC_DELIVERY_MODE_FIXED = 0,
> - APIC_DELIVERY_MODE_LOWESTPRIO = 1,
> - APIC_DELIVERY_MODE_SMI = 2,
> - APIC_DELIVERY_MODE_NMI = 4,
> - APIC_DELIVERY_MODE_INIT = 5,
> - APIC_DELIVERY_MODE_EXTINT = 7,
> -};
> -
> #endif /* !__ASSEMBLY__ */
> #endif /* _ASM_X86_APICDEF_H */
>
> --
> 2.30.2
>
--
Steve Wahl, Hewlett Packard Enterprise
Powered by blists - more mailing lists