git: 9c8bcdddb35e - main - hwpmc: build hwpmc_rapl.c into the i386 module

Alexander Leidinger <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a8aab38.3f67f.2c6b8f27__22993.824437593$1787472726$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/src/commit/?id=9c8bcdddb35e9a3c70f65748ecc784bb400dfa38

commit 9c8bcdddb35e9a3c70f65748ecc784bb400dfa38
Author:     Alexander Leidinger <[email protected]>
AuthorDate: 2026-08-22 07:59:04 +0000
Commit:     Alexander Leidinger <[email protected]>
CommitDate: 2026-08-23 08:09:44 +0000

    hwpmc: build hwpmc_rapl.c into the i386 module
    
    The module's i386 source list compiles the files that call
    pmc_rapl_initialize() and pmc_rapl_finalize() but not the one that defines
    them, so the i386 hwpmc.ko has both undefined and cannot be loaded.
    
    Fixes:          a99d04f39dab ("hwpmc: add RAPL energy-counter class (AMD + Intel)")
    Assisted-by:    Claude Code (Opus 5)
---
 sys/modules/hwpmc/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile
index 7d8918c862f8..39ce7be9884e 100644
--- a/sys/modules/hwpmc/Makefile
+++ b/sys/modules/hwpmc/Makefile
@@ -38,6 +38,7 @@ SRCS+=	hwpmc_amd.c \
 	hwpmc_core.c \
 	hwpmc_ibs.c \
 	hwpmc_intel.c \
+	hwpmc_rapl.c \
 	hwpmc_tsc.c \
 	hwpmc_uncore.c \
 	hwpmc_x86.c
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.