[SeaBIOS] [PATCH v2 4/4] cleanup smp_setup()

Igor Mammedov imammedo at redhat.com
Wed May 11 12:03:41 CEST 2016


MaxCountCPUs could never be 0 or less CountCPUs
anymore, remove code that wouldn't be executed.

Signed-off-by: Igor Mammedov <imammedo at redhat.com>
---
 src/fw/smp.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/fw/smp.c b/src/fw/smp.c
index dfb8425..cb40ec6 100644
--- a/src/fw/smp.c
+++ b/src/fw/smp.c
@@ -162,9 +162,6 @@ smp_setup(void)
     // Restore memory.
     *(u64*)BUILD_AP_BOOT_ADDR = old;
 
-    if (!MaxCountCPUs || MaxCountCPUs < CountCPUs)
-        MaxCountCPUs = CountCPUs;
-
     dprintf(1, "Found %d cpu(s) max supported %d cpu(s)\n", CountCPUs,
             MaxCountCPUs);
 }
-- 
1.8.3.1




More information about the SeaBIOS mailing list