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

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
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: [email protected]
          Reporter: [email protected]

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.