Re: [PATCH] peci: Remove dependency on x86 CPU variables

From: David Laight

Date: Thu Feb 19 2026 - 05:21:11 EST


On Wed, 18 Feb 2026 09:03:01 -0800
Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> wrote:

> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> tl;dr: The non-x86 PECI driver #includes an arch/x86 header. This is
> ostensibly to avoid duplicating CPU model number constants, but the
> result is complexity and duplicated *code* which is a far worse fate
> than duplicated constants.

Is is possible/sensible to add a check in one file that includes both
headers that the constants match?

That will help pick up any typos.

David