Date: Fri, 26 Jun 2026 21:37:51 +0000 From: Olivier Certner <olce@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6b54e961528d - main - hwpstate_intel(4): Fix comment for 'req', whitespace Message-ID: <6a3ef12f.24066.3f3058d4@gitrepo.freebsd.org>
index | next in thread | raw e-mail
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 \home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3ef12f.24066.3f3058d4>
