]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: properly determine hardware caps
authorAndreas Schwab <schwab@suse.de>
Tue, 23 Oct 2018 07:33:47 +0000 (09:33 +0200)
committerPalmer Dabbelt <palmer@sifive.com>
Wed, 31 Oct 2018 19:13:43 +0000 (12:13 -0700)
commit7b24e01a98d96e65726e9ec3dc5d5a35baf93e00
tree49654d9e8c7afcb00c220a99262f6f3faf7df857
parent1f05f24cd5ea1d2dbed71a5782468228dfdc077f
RISC-V: properly determine hardware caps

On the Hifive-U platform, cpu 0 is a masked cpu with less capabilities
than the other cpus.  Ignore it for the purpose of determining the
hardware capabilities of the system.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpufeature.c