[Bug 296420] cpufreq: fix hwpstate_intel.c on i386 after 27b24894ec78 (patch)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 01 Jul 2026 08:07:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296420

            Bug ID: 296420
           Summary: cpufreq: fix hwpstate_intel.c on i386 after
                    27b24894ec78 (patch)
           Product: Base System
           Version: 15.1-STABLE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Created attachment 272321
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=272321&action=edit
Make hwpstate_intel.c compile on i386

Scenario:
- FreeBSD stable/15 at 034e21efa19d
- Running 'make buildkernel'

Result:
- The build fails with multiple errors in sys/x86/cpufreq/hwpstate_intel.c
about PCPU_GET(small_core); the latter does not exist on i386.

Expected result:
- stable/15 should still try to support i386 :-)

Proposed patch attached. It compiles for me, but I am no kernel expert, so the
correct solution might be different.

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.