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

David Laight
2026-02-19T22:56:52Z

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

> From: Dave Hansen <dave.hansen@linux.intel.com>
>
> 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