]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Correct the calculation logic of thread_count
authorQiang Ma <maqianga@uniontech.com>
Sat, 6 Dec 2025 02:39:49 +0000 (10:39 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 6 Dec 2025 02:39:49 +0000 (10:39 +0800)
commit1de0ae21f136efa6c5d8a4d3e07b7d1ca39c750f
treebb8de9e47d027c28a606d5565f43e7c3804d1fc6
parenta258a3cb1895e3acf5f2fe245d17426e894bc935
LoongArch: Correct the calculation logic of thread_count

For thread_count, the current calculation method has a maximum of 255,
which may not be sufficient in the future. Therefore, we are correcting
it now.

Reference: SMBIOS Specification, 7.5 Processor Information (Type 4)[1]

[1]: https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.9.0.pdf

Cc: stable@vger.kernel.org
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/setup.c