mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-28 05:53:14 +00:00
bcachefs: fix ifdef for x86_64 asm
The implementation of prefetch_four_cachelines should use ifdef CONFIG_X86_64 to conditionally compile x86_64 asm. Signed-off-by: Dan Robertson <dan@dlrobertson.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
32abe2e38f
commit
6f152b0f37
@ -1181,7 +1181,7 @@ static struct bkey_packed *bset_search_write_set(const struct btree *b,
|
||||
|
||||
static inline void prefetch_four_cachelines(void *p)
|
||||
{
|
||||
#if CONFIG_X86_64
|
||||
#ifdef CONFIG_X86_64
|
||||
asm("prefetcht0 (-127 + 64 * 0)(%0);"
|
||||
"prefetcht0 (-127 + 64 * 1)(%0);"
|
||||
"prefetcht0 (-127 + 64 * 2)(%0);"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user