mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 00:04:14 -05:00
Initialize logical_cpus_mask when the logical CPUs are enumerated in
the mptable. (Previously, logical_cpus_mask was only initialized if the hyperthreading fixup was executed.) Approved by: re (jhb) Reviewed by: ps
This commit is contained in:
parent
2a9fc22645
commit
4a0d6dfd2c
6 changed files with 30 additions and 12 deletions
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
|
|
@ -999,9 +999,12 @@ mptable_pass2(void)
|
|||
while (count--) {
|
||||
switch (type = *(u_char *) position) {
|
||||
case 0:
|
||||
if (processor_entry(position, cpu))
|
||||
if (processor_entry(position, cpu)) {
|
||||
if (logical_cpus != 0 &&
|
||||
cpu % logical_cpus != 0)
|
||||
logical_cpus_mask |= (1 << cpu);
|
||||
++cpu;
|
||||
|
||||
}
|
||||
if (need_hyperthreading_fixup) {
|
||||
/*
|
||||
* Create fake mptable processor entries
|
||||
|
|
|
|||
Loading…
Reference in a new issue