Page MenuHomeFreeBSD

D44455.diff
No OneTemporary

D44455.diff

diff --git a/sys/conf/options b/sys/conf/options
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -638,7 +638,7 @@
EARLY_AP_STARTUP opt_global.h
SMP opt_global.h
NUMA opt_global.h
-CPUGRP_SCORE opt_global.h
+HMP opt_global.h
# Size of the kernel message buffer
MSGBUF_SIZE opt_msgbuf.h
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -82,7 +82,7 @@
top->cg_children = 0;
top->cg_level = CG_SHARE_NONE;
top->cg_flags = 0;
-#if defined(CPUGRP_SCORE)
+#if defined(HMP)
memset(top->cg_score, CG_SCORE_DEFAULT, sizeof(top->cg_score));
#endif
return (top);
@@ -786,7 +786,7 @@
child->cg_count = count;
child->cg_flags = flags;
child->cg_mask = mask;
-#if defined(CPUGRP_SCORE)
+#if defined(HMP)
memset(child->cg_score, CG_SCORE_DEFAULT, sizeof(child->cg_score));
#endif
parent->cg_children++;
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -77,7 +77,7 @@
* The topology may be omitted by systems where all CPUs are equal.
*/
-#if defined(CPUGRP_SCORE)
+#if defined(HMP)
#define CG_SCORE_CLASS_MAX 8
#define CG_SCORE_CAPABILITY_MAX 2
@@ -94,7 +94,7 @@
int16_t cg_children; /* Number of children groups. */
int8_t cg_level; /* Shared cache level. */
int8_t cg_flags; /* Traversal modifiers. */
-#if defined(CPUGRP_SCORE)
+#if defined(HMP)
uint8_t cg_score[CG_SCORE_CLASS_MAX][CG_SCORE_CAPABILITY_MAX];
/* Performance/Efficiency Score from Intel HFI/ITD */
#endif
diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c
--- a/sys/x86/x86/mp_x86.c
+++ b/sys/x86/x86/mp_x86.c
@@ -851,7 +851,7 @@
else
cg_root->cg_flags = 0;
-#if defined(CPUGRP_SCORE)
+#if defined(HMP)
/*
* Set default performance/efficiency score.
*/

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 12, 9:26 AM (1 h, 25 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29569855
Default Alt Text
D44455.diff (1 KB)

Event Timeline