git: ed8b9bf5f076 - main - hwpmc: include PMC_CLASS_PERF in the PMC class range
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Oct 2026 14:11:45 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=ed8b9bf5f076609a2ba6f07dd9733ccb795f400a
commit ed8b9bf5f076609a2ba6f07dd9733ccb795f400a
Author: Osvaldo Janeri Filho <ojanerif@amd.com>
AuthorDate: 2026-10-30 14:10:39 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-10-30 14:11:28 +0000
hwpmc: include PMC_CLASS_PERF in the PMC class range
PMC_CLASS_PERF (0x1a) was added after PMC_CLASS_RAPL, but
PMC_CLASS_LAST was left at PMC_CLASS_RAPL.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>
Reviewed by: Anderson Nascimento <anascime@amd.com>, mhorne
Fixes: 5369f8e73eff ("hwpmc: add MPERF/APERF MSR support for AMD/Intel CPUs")
Sponsored by: AMD
Differential Revision: https://reviews.freebsd.org/D60546
---
sys/sys/pmc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index be932f4289b7..05e73bbcc337 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -167,7 +167,7 @@ enum pmc_class {
};
#define PMC_CLASS_FIRST PMC_CLASS_TSC
-#define PMC_CLASS_LAST PMC_CLASS_RAPL
+#define PMC_CLASS_LAST PMC_CLASS_PERF
/*
* A PMC can be in the following states: