File tree Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Expand file tree Collapse file tree 2 files changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ struct vm86;
26
26
#include <asm/fpu/types.h>
27
27
#include <asm/unwind_hints.h>
28
28
#include <asm/vmxfeatures.h>
29
+ #include <asm/vdso/processor.h>
29
30
30
31
#include <linux/personality.h>
31
32
#include <linux/cache.h>
@@ -677,17 +678,6 @@ static inline unsigned int cpuid_edx(unsigned int op)
677
678
return edx ;
678
679
}
679
680
680
- /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
681
- static __always_inline void rep_nop (void )
682
- {
683
- asm volatile ("rep; nop" ::: "memory" );
684
- }
685
-
686
- static __always_inline void cpu_relax (void )
687
- {
688
- rep_nop ();
689
- }
690
-
691
681
/*
692
682
* This function forces the icache and prefetched instruction stream to
693
683
* catch up with reality in two very specific cases:
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+ /*
3
+ * Copyright (C) 2020 ARM Ltd.
4
+ */
5
+ #ifndef __ASM_VDSO_PROCESSOR_H
6
+ #define __ASM_VDSO_PROCESSOR_H
7
+
8
+ #ifndef __ASSEMBLY__
9
+
10
+ /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
11
+ static __always_inline void rep_nop (void )
12
+ {
13
+ asm volatile ("rep; nop" ::: "memory" );
14
+ }
15
+
16
+ static __always_inline void cpu_relax (void )
17
+ {
18
+ rep_nop ();
19
+ }
20
+
21
+ #endif /* __ASSEMBLY__ */
22
+
23
+ #endif /* __ASM_VDSO_PROCESSOR_H */
You can’t perform that action at this time.
0 commit comments