projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
riscv: check for kernel config option in t-head memory types errata
[linux-2.6-microblaze.git]
/
arch
/
riscv
/
errata
/
thead
/
errata.c
diff --git
a/arch/riscv/errata/thead/errata.c
b/arch/riscv/errata/thead/errata.c
index
a6f4bd8
..
902e124
100644
(file)
--- a/
arch/riscv/errata/thead/errata.c
+++ b/
arch/riscv/errata/thead/errata.c
@@
-17,6
+17,9
@@
static bool errata_probe_pbmt(unsigned int stage,
unsigned long arch_id, unsigned long impid)
{
+ if (!IS_ENABLED(CONFIG_ERRATA_THEAD_PBMT))
+ return false;
+
if (arch_id != 0 || impid != 0)
return false;