cfg: Make NR_CPUS customizable, and default to 128. With EPYC users around, we might as well use that instead of our previous 64 default.

This commit is contained in:
Tk-Glitch
2022-08-10 19:30:56 +02:00
parent 5ffc714479
commit 54246af5fe
2 changed files with 6 additions and 1 deletions

View File

@@ -698,7 +698,7 @@ _tkg_srcprep() {
_disable "DEBUG_FORCE_FUNCTION_ALIGN_64B"
scripts/config --set-str "ZSWAP_COMPRESSOR_DEFAULT" "lz4"
scripts/config --set-str "CMDLINE" "${_custom_commandline}"
scripts/config --set-val "NR_CPUS" "64"
scripts/config --set-val "NR_CPUS" "$_NR_CPUS_value"
_disable "CMDLINE_OVERRIDE" "X86_P6_NOP" "CPU_FREQ_DEFAULT_GOV_ONDEMAND" "CPU_FREQ_DEFAULT_GOV_CONSERVATIVE"
#echo "# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set" >> ./.config