Page MenuHomeFreeBSD

D58208.id181875.diff
No OneTemporary

D58208.id181875.diff

diff --git a/sys/x86/cpufreq/hwpstate_intel.c b/sys/x86/cpufreq/hwpstate_intel.c
--- a/sys/x86/cpufreq/hwpstate_intel.c
+++ b/sys/x86/cpufreq/hwpstate_intel.c
@@ -347,6 +347,7 @@
return (ret);
}
+#ifndef __i386__
static void
intel_hwpstate_hybrid_cb(void *ctx)
{
@@ -354,11 +355,14 @@
atomic_add_32(small_cores, PCPU_GET(small_core));
}
+#endif
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;
@@ -379,6 +383,7 @@
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
@@ -389,6 +394,7 @@
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)

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 23, 10:06 PM (15 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35058058
Default Alt Text
D58208.id181875.diff (1 KB)

Event Timeline