projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58e5dc
)
riscv: mm: Make asid_bits a local variable
author
Samuel Holland
<samuel.holland@sifive.com>
Wed, 27 Mar 2024 04:49:52 +0000
(21:49 -0700)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Mon, 29 Apr 2024 17:49:34 +0000
(10:49 -0700)
This variable is only used inside asids_init().
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link:
https://lore.kernel.org/r/20240327045035.368512-12-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/context.c
patch
|
blob
|
history
diff --git
a/arch/riscv/mm/context.c
b/arch/riscv/mm/context.c
index 5315af06cd4d00c890cb2e465a278f2289644ef4..0bf6d0070a14e14bcb63e6b48b7d1e8d554fd247 100644
(file)
--- a/
arch/riscv/mm/context.c
+++ b/
arch/riscv/mm/context.c
@@
-20,7
+20,6
@@
DEFINE_STATIC_KEY_FALSE(use_asid_allocator);
-static unsigned long asid_bits;
static unsigned long num_asids;
static atomic_long_t current_version;
@@
-226,7
+225,7
@@
static inline void set_mm(struct mm_struct *prev,
static int __init asids_init(void)
{
- unsigned long old;
+ unsigned long
asid_bits,
old;
/* Figure-out number of ASID bits in HW */
old = csr_read(CSR_SATP);