git: 6b54e961528d - main - hwpstate_intel(4): Fix comment for 'req', whitespace
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 21:37:51 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=6b54e961528d83bcc7fd41051e66d01aa9c6d3fe
commit 6b54e961528d83bcc7fd41051e66d01aa9c6d3fe
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-06-26 21:31:17 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-06-26 21:37:08 +0000
hwpstate_intel(4): Fix comment for 'req', whitespace
MFC after: 2 weeks
Event: Halifax Hackathon 202606
Location: Seat 36K in AC667, over Thetford Mines
Sponsored by: The FreeBSD Foundation
---
sys/x86/cpufreq/hwpstate_intel.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/sys/x86/cpufreq/hwpstate_intel.c b/sys/x86/cpufreq/hwpstate_intel.c
index b02d212653d3..2491a7784956 100644
--- a/sys/x86/cpufreq/hwpstate_intel.c
+++ b/sys/x86/cpufreq/hwpstate_intel.c
@@ -99,7 +99,8 @@ static device_method_t intel_hwpstate_methods[] = {
struct hwp_softc {
device_t dev;
- bool hwp_notifications;
+
+ bool hwp_notifications;
bool hwp_activity_window;
bool hwp_pref_ctrl;
bool hwp_pkg_ctrl;
@@ -107,8 +108,10 @@ struct hwp_softc {
bool hwp_perf_bias;
bool hwp_perf_bias_cached;
- uint64_t req; /* Cached copy of HWP_REQUEST */
- uint64_t hwp_energy_perf_bias; /* Cache PERF_BIAS */
+ /* Cached copy of HWP_REQUEST/HWP_REQUEST_PKG. */
+ uint64_t req;
+ /* Cache PERF_BIAS. */
+ uint64_t hwp_energy_perf_bias;
uint8_t high;
uint8_t guaranteed;
@@ -238,7 +241,7 @@ intel_hwp_dump_sysctl_handler(SYSCTL_HANDLER_ARGS)
}
#define pkg_print(x, name, offset) do { \
- if (!sc->hwp_pkg_ctrl || (data.request & x) != 0) \
+ if (!sc->hwp_pkg_ctrl || (data.request & x) != 0) \
sbuf_printf(sb, "\t%s: %03u\n", name, \
(unsigned)(data.request >> offset) & 0xff); \
else \