git: 35ce7d40f986 - main - powerpc/booke: Clamp MAXCPU to 32 for Book-E platforms
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Aug 2022 16:06:33 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=35ce7d40f9861059caa460296d1663ff172de931 commit 35ce7d40f9861059caa460296d1663ff172de931 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2022-08-06 15:35:44 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2022-08-06 15:42:19 +0000 powerpc/booke: Clamp MAXCPU to 32 for Book-E platforms Since the likelihood of new Book-E PowerPC SoCs being produced is near zero clamp MAXCPU to around the highest number of cores/threads available currently, for both 64-bit and 32-bit. Even though the current highest core/thread count is 24, the cap is set at 32 in case there is code that assumes power of 2. --- sys/powerpc/conf/MPC85XX | 1 + sys/powerpc/conf/QORIQ64 | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/powerpc/conf/MPC85XX b/sys/powerpc/conf/MPC85XX index ed0dd5f8e587..e1978ba3e831 100644 --- a/sys/powerpc/conf/MPC85XX +++ b/sys/powerpc/conf/MPC85XX @@ -15,6 +15,7 @@ makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions WITH_CTF=1 options FPU_EMU +options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER diff --git a/sys/powerpc/conf/QORIQ64 b/sys/powerpc/conf/QORIQ64 index 5db473c5393b..e1ef972d88eb 100644 --- a/sys/powerpc/conf/QORIQ64 +++ b/sys/powerpc/conf/QORIQ64 @@ -17,6 +17,7 @@ makeoptions WITH_CTF=1 #makeoptions WERROR="-Werror -Wno-format" options FPU_EMU +options MAXCPU=32 options _KPOSIX_PRIORITY_SCHEDULING options ALT_BREAK_TO_DEBUGGER