]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64/cpuinfo: only show one cpu's info in c_show()
authorYe Bin <yebin10@huawei.com>
Mon, 21 Apr 2025 06:29:47 +0000 (14:29 +0800)
committerWill Deacon <will@kernel.org>
Fri, 9 May 2025 14:30:20 +0000 (15:30 +0100)
commit7bb797757bf5720543f1c5115b40a8d646d5c1cc
tree39977f9c6ce5f63d23bcae77ccb8a61ec9d54580
parent83a39eccdf2f26024ce7699aefb7e439221d88af
arm64/cpuinfo: only show one cpu's info in c_show()

Currently, when ARM64 displays CPU information, every call to c_show()
assembles all CPU information. However, as the number of CPUs increases,
this can lead to insufficient buffer space due to excessive assembly in
a single call, causing repeated expansion and multiple calls to c_show().

To prevent this invalid c_show() call, only one CPU's information is
assembled each time c_show() is called.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20250421062947.4072855-1-yebin@huaweicloud.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpuinfo.c