Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / loongarch / include / asm / prefetch.h
blob1672262a5e2efadb186cc2a163c17ceb816b108c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef __ASM_PREFETCH_H
6 #define __ASM_PREFETCH_H
8 #define Pref_Load 0
9 #define Pref_Store 8
11 #ifdef __ASSEMBLY__
13 .macro __pref hint addr
14 #ifdef CONFIG_CPU_HAS_PREFETCH
15 preld \hint, \addr, 0
16 #endif
17 .endm
19 .macro pref_load addr
20 __pref Pref_Load, \addr
21 .endm
23 .macro pref_store addr
24 __pref Pref_Store, \addr
25 .endm
27 #endif
29 #endif /* __ASM_PREFETCH_H */