]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Filter ISA and MMU values in cpuinfo
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 2 Oct 2018 19:14:56 +0000 (12:14 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:03:35 +0000 (17:03 -0700)
commit1b05030d6a8b845f46b736bc8db19a56f63838cd
treee8dade2d43c99190dfe9c58a278790a4b034b527
parent67ef63f3ecbd4f16ce2d058165c7b0c9234b8077
RISC-V: Filter ISA and MMU values in cpuinfo

We shouldn't be directly passing device tree values to userspace, both
because there could be mistakes in device trees and because the kernel
doesn't support arbitrary ISAs.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
[Atish: checkpatch fix and code comment formatting update]
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpu.c