FreeBSD Bugzilla – Attachment 270272 Details for
Bug 294899
hwpstate_amd: Initialize CPPC driver type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch hwpstate_type_cppc
0001-hwpstate_amd-Initialize-CPPC-driver-type.patch (text/plain), 891 bytes, created by
Laurent Chardon
on 2026-04-30 12:19:43 UTC
(
hide
)
Description:
Patch hwpstate_type_cppc
Filename:
MIME Type:
Creator:
Laurent Chardon
Created:
2026-04-30 12:19:43 UTC
Size:
891 bytes
patch
obsolete
>From d07238f724eebee3040c91152e0067b42c655ad3 Mon Sep 17 00:00:00 2001 >From: Laurent Chardon <laurent@FreeBSD.org> >Date: Thu, 30 Apr 2026 08:08:30 -0400 >Subject: [PATCH] hwpstate_amd: Initialize CPPC driver type > >Assign the driver type instead of preserving uninitialized stack data >--- > 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); > } >-- >2.53.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 294899
: 270272