mirror of
https://github.com/memtest86plus/memtest86plus
synced 2025-03-12 17:02:58 +03:00
Fix disabling SMP using F2 at startup dialogue.
smp_init() used to be called after the startup dialogue, so F2 only needed to change the enable_smp flag. Now smp_init() is called earlier, we also need to reset num_available_cpus.
This commit is contained in:
parent
d3d52b8a11
commit
03cd8d1898
@ -255,6 +255,10 @@ static void global_init(void)
|
||||
|
||||
clear_message_area();
|
||||
|
||||
if (!smp_enabled) {
|
||||
num_available_cpus = 1;
|
||||
}
|
||||
|
||||
num_enabled_cpus = 0;
|
||||
for (int i = 0; i < num_available_cpus; i++) {
|
||||
if (cpu_state[i] == CPU_STATE_ENABLED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user