From c22c7deb178dc8e2612b6387d09dbbc137e96514 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 16 Apr 2017 17:00:42 +0100 Subject: [PATCH] [mips*el/loongson-3] Set NR_CPUS=16 to allow for Loongson 3B2000 The Loongson 3B2000 has 4 cores and can apparently be used in a 4-way configuration, for 16 CPUs. I don't think the current configuration will run on a 3B2000, but this should avoid an ABI break if we address that. --- debian/changelog | 1 + debian/config/kernelarch-mips/config.loongson-3 | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/changelog b/debian/changelog index f787ff9fe..8d103f19d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,7 @@ linux (4.9.18-2) UNRELEASED; urgency=medium * udeb: Include all AHCI drivers in sata-modules (Closes: #860335) * [powerpc/powerpc64,ppc64] Set NR_CPUS=2048, matching ppc64el * [powerpc*/*64*] Enable CPUMASK_OFFSTACK to reduce stack usage + * [mips*el/loongson-3] Set NR_CPUS=16 to allow for Loongson 3B2000 [ Salvatore Bonaccorso ] * ping: implement proper locking (CVE-2017-2671) diff --git a/debian/config/kernelarch-mips/config.loongson-3 b/debian/config/kernelarch-mips/config.loongson-3 index a8235bfc4..acf7a373b 100644 --- a/debian/config/kernelarch-mips/config.loongson-3 +++ b/debian/config/kernelarch-mips/config.loongson-3 @@ -10,6 +10,7 @@ CONFIG_64BIT=y ## end choice CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y +CONFIG_NR_CPUS=16 ## ## file: arch/mips/loongson64/Kconfig