]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Do not create sysfs control file for io master CPUs
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 12 Oct 2022 08:36:08 +0000 (16:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:08 +0000 (16:36 +0800)
commitadac32ab5d6d51fcf502dc9683db033546a92df5
tree07f59ad5e94802281faa7fe6540f1f1f76594063
parent6edba80f6f32023484b01122f7a7e85d77677fb1
LoongArch: Do not create sysfs control file for io master CPUs

Now io master CPUs are not hotpluggable on LoongArch, but in the current
code only /sys/devices/system/cpu/cpu0/online is not created. Let us set
the hotpluggable field of all the io master CPUs as 0, then prevent to
create sysfs control file for all the io master CPUs which confuses some
user space tools. This is similar with commit ea3db9d6660c ("MIPS: CPU#0
is not hotpluggable").

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/bootinfo.h
arch/loongarch/kernel/smp.c
arch/loongarch/kernel/topology.c