aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Chardon <laurent@FreeBSD.org>2026-04-30 12:08:30 +0000
committerShengYi Hung <aokblast@FreeBSD.org>2026-05-09 08:38:21 +0000
commit072f79d0a287528b11da866d6115f726a69eca0d (patch)
treec7912a8f149560f632e060860f3fad6e3c0e873f
parent10e342c1ec78af5a0b97739c806b16a632118fa5 (diff)
hwpstate_amd: Initialize CPPC driver type
Assign the driver type instead of preserving uninitialized stack data PR: 294899 Reviewed by: aokblast
-rw-r--r--sys/x86/cpufreq/hwpstate_amd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/cpufreq/hwpstate_amd.c b/sys/x86/cpufreq/hwpstate_amd.c
index 5e075a26a57b..bbc6592579e3 100644
--- a/sys/x86/cpufreq/hwpstate_amd.c
+++ b/sys/x86/cpufreq/hwpstate_amd.c
@@ -745,7 +745,7 @@ hwpstate_settings(device_t dev, struct cf_setting *sets, int *count)
static int
hwpstate_type_cppc(device_t dev, int *type)
{
- *type |= CPUFREQ_TYPE_ABSOLUTE | CPUFREQ_FLAG_INFO_ONLY |
+ *type = CPUFREQ_TYPE_ABSOLUTE | CPUFREQ_FLAG_INFO_ONLY |
CPUFREQ_FLAG_UNCACHED;
return (0);
}