Date: Sat, 09 May 2026 08:38:57 +0000 From: ShengYi Hung <aokblast@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Laurent Chardon <laurent@FreeBSD.org> Subject: git: 072f79d0a287 - main - hwpstate_amd: Initialize CPPC driver type Message-ID: <69fef2a1.1c8d3.514df1b6@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=072f79d0a287528b11da866d6115f726a69eca0d commit 072f79d0a287528b11da866d6115f726a69eca0d Author: Laurent Chardon <laurent@FreeBSD.org> AuthorDate: 2026-04-30 12:08:30 +0000 Commit: ShengYi Hung <aokblast@FreeBSD.org> CommitDate: 2026-05-09 08:38:21 +0000 hwpstate_amd: Initialize CPPC driver type Assign the driver type instead of preserving uninitialized stack data PR: 294899 Reviewed by: aokblast --- sys/x86/cpufreq/hwpstate_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69fef2a1.1c8d3.514df1b6>
