diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2023-05-21 23:31:22 +0100 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2023-06-09 10:34:14 +0200 |
commit | 96cb8ae28c652e7ef0633b1c0786eb0f529ed516 (patch) | |
tree | 3490ae910dca2655c0fd16b9ece2d4974dc9e886 /arch/mips/include/asm | |
parent | dfbd992e0ef2319b869bf69fe649d34d2dc49e4b (diff) | |
download | lwn-96cb8ae28c652e7ef0633b1c0786eb0f529ed516.tar.gz lwn-96cb8ae28c652e7ef0633b1c0786eb0f529ed516.zip |
MIPS: Rework smt cmdline parameters
Provide a generic smt parameters interface aligned with s390
to allow users to limit smt usage and threads per core.
It replaced previous undocumented "nothreads" parameter for
smp-cps which is ambiguous and does not cover smp-mt.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/smp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/smp.h b/arch/mips/include/asm/smp.h index aab8981bc32c..a40d8c0e4b87 100644 --- a/arch/mips/include/asm/smp.h +++ b/arch/mips/include/asm/smp.h @@ -57,6 +57,8 @@ extern int __cpu_logical_map[NR_CPUS]; /* Mask of CPUs which are currently definitely operating coherently */ extern cpumask_t cpu_coherent_mask; +extern unsigned int smp_max_threads __initdata; + extern asmlinkage void smp_bootstrap(void); extern void calculate_cpu_foreign_map(void); |