riscv: cpu: Skip unavailable hart in the get_count() op
authorBin Meng <bmeng.cn@gmail.com>
Thu, 8 Aug 2019 07:52:08 +0000 (00:52 -0700)
committerAndes <uboot@andestech.com>
Tue, 3 Sep 2019 01:29:43 +0000 (09:29 +0800)
commit4dfea4b5cd68b86dd47d1333f1871a402087deaa
tree6bc15ae519a7cf845843ea5be741241f42f4c60b
parentd22c8be964a870f59d2fdab6c67cefa0c4799364
riscv: cpu: Skip unavailable hart in the get_count() op

We should not count in hart that is marked as not available in the
device tree in riscv_cpu_get_count().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
drivers/cpu/riscv_cpu.c