summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-12-15 13:07:26 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-12-28 22:34:09 +0100
commitdbafd5105cfd9f44960bc6759a788f0290e8fba0 (patch)
tree6f9c506334c7d33bb4c2717ca9165852d70c41d6 /arch/mips/Kconfig
parenta2d029b16cd8db2fd35d1c394889a38b3e73ca94 (diff)
downloadlinux-dbafd5105cfd9f44960bc6759a788f0290e8fba0.tar.bz2
MIPS: No need to check CPU 0 in cps_cpu_disable()
After commit 9cce844abf07 ("MIPS: CPU#0 is not hotpluggable"), c->hotpluggable is 0 for CPU 0 and it will not generate a control file in sysfs for this CPU: [root@linux loongson]# cat /sys/devices/system/cpu/cpu0/online cat: /sys/devices/system/cpu/cpu0/online: No such file or directory [root@linux loongson]# echo 0 > /sys/devices/system/cpu/cpu0/online bash: /sys/devices/system/cpu/cpu0/online: Permission denied So no need to check CPU 0 in cps_cpu_disable(), just remove it. Reported-by: liwei (GF) <liwei391@huawei.com> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/Kconfig')
0 files changed, 0 insertions, 0 deletions