git: 8f7ea6b7d197 - stable/15 - hwpstate_intel: Minimize ifdef for i386 build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Jul 2026 13:16:53 UTC
The branch stable/15 has been updated by aokblast:
URL: https://cgit.FreeBSD.org/src/commit/?id=8f7ea6b7d1973d0e371ba48e63c31c851f6a72bf
commit 8f7ea6b7d1973d0e371ba48e63c31c851f6a72bf
Author: ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2026-07-19 14:00:27 +0000
Commit: ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-07-25 13:13:24 +0000
hwpstate_intel: Minimize ifdef for i386 build
Reported by: jrtc27
Fixes: bdc0f7678257
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 02c440e204041e92da403a64b70c2e1fdf3a4f73)
---
sys/x86/cpufreq/hwpstate_intel.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/x86/cpufreq/hwpstate_intel.c b/sys/x86/cpufreq/hwpstate_intel.c
index 99741f66b986..0d5c0b85aa43 100644
--- a/sys/x86/cpufreq/hwpstate_intel.c
+++ b/sys/x86/cpufreq/hwpstate_intel.c
@@ -336,9 +336,7 @@ intel_hwpstate_hybrid_cb(void *ctx)
void
intel_hwpstate_identify(driver_t *driver, device_t parent)
{
-#ifndef __i386__
uint32_t small_cores = 0;
-#endif
if (device_find_child(parent, "hwpstate_intel", DEVICE_UNIT_ANY) != NULL)
return;
@@ -359,7 +357,6 @@ intel_hwpstate_identify(driver_t *driver, device_t parent)
if ((cpu_power_eax & CPUTPM1_HWP) == 0)
return;
-#ifndef __i386__
/*
* On hybrid-core systems, package-level control cannot be used.
* It may cause all cores to run at the E-core frequency because
@@ -370,7 +367,6 @@ intel_hwpstate_identify(driver_t *driver, device_t parent)
intel_hwpstate_hybrid_cb, smp_no_rendezvous_barrier, &small_cores);
if (small_cores > 0 && small_cores < mp_ncores)
hwpstate_pkg_ctrl_enable = false;
-#endif
if (BUS_ADD_CHILD(parent, 10, "hwpstate_intel", device_get_unit(parent))
== NULL)