mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-10 06:22:30 -04: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:
committed by
Kent Overstreet
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);"
|
||||
|
||||
Reference in New Issue
Block a user