arm64: Support hard limit of cpu count by nr_cpus
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 9 Aug 2016 02:30:49 +0000 (10:30 +0800)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Aug 2016 10:00:44 +0000 (11:00 +0100)
commit50ee91bdef41c15b671dcd9446ee007a1d2f5ab7
tree3a45fa40d1f2bedc39c5d59970918fd91e495534
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
arm64: Support hard limit of cpu count by nr_cpus

Enable the hard limit of cpu count by set boot options nr_cpus=x
on arm64, and make a minor change about message when total number
of cpu exceeds the limit.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Reported-by: Shiyuan Hu <hushiyuan@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/smp.c