]> 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)
commit4251dfe7525de52c93714d5372f8826c02c9c5d5
tree49654d9e8c7afcb00c220a99262f6f3faf7df857
parent36014620c2b5e094b9077fafc834cadc8a6740ca
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