diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-06-10 21:32:14 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-06-19 21:34:34 +0200 |
commit | e3c92e81711d14b46c3121d36bc8e152cb843923 (patch) | |
tree | 5cc3f60e606cd405acc34b259eb19a116c082ff8 /arch/x86/kernel/vmlinux.lds.S | |
parent | runtime constants: add default dummy infrastructure (diff) | |
download | linux-e3c92e81711d14b46c3121d36bc8e152cb843923.tar.xz linux-e3c92e81711d14b46c3121d36bc8e152cb843923.zip |
runtime constants: add x86 architecture support
This implements the runtime constant infrastructure for x86, allowing
the dcache d_hash() function to be generated using as a constant for
hash table address followed by shift by a constant of the hash index.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/x86/kernel/vmlinux.lds.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/vmlinux.lds.S b/arch/x86/kernel/vmlinux.lds.S index 3509afc6a672..6e73403e874f 100644 --- a/arch/x86/kernel/vmlinux.lds.S +++ b/arch/x86/kernel/vmlinux.lds.S @@ -357,6 +357,9 @@ SECTIONS PERCPU_SECTION(INTERNODE_CACHE_BYTES) #endif + RUNTIME_CONST(shift, d_hash_shift) + RUNTIME_CONST(ptr, dentry_hashtable) + . = ALIGN(PAGE_SIZE); /* freed after init ends here */ |