Page MenuHomeFreeBSD

D58335.id182198.diff
No OneTemporary

D58335.id182198.diff

diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -262,6 +262,7 @@
return;
PCPU_SET(small_core, 1);
+ hybrid_small_cores = 1;
if (pmap_pcid_enabled && invpcid_works &&
pmap_pcid_invlpg_workaround_uena) {
PCPU_SET(pcid_invlpg_workaround, 1);
diff --git a/sys/x86/include/x86_var.h b/sys/x86/include/x86_var.h
--- a/sys/x86/include/x86_var.h
+++ b/sys/x86/include/x86_var.h
@@ -97,6 +97,7 @@
extern int zenbleed_enable;
extern int cpu_amdc1e_bug;
extern char bootmethod[16];
+extern int hybrid_small_cores;
struct pcb;
struct thread;
diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c
--- a/sys/x86/x86/cpu_machdep.c
+++ b/sys/x86/x86/cpu_machdep.c
@@ -1873,3 +1873,5 @@
else
return (rdtsc);
}
+
+int hybrid_small_cores;

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 7, 10:23 AM (6 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36164332
Default Alt Text
D58335.id182198.diff (851 B)

Event Timeline