17
17
18
18
/* Declaration required for gcc < 4.9 to prevent -Werror=missing-prototypes */
19
19
extern inline unsigned long native_save_fl (void );
20
- extern inline unsigned long native_save_fl (void )
20
+ extern __always_inline unsigned long native_save_fl (void )
21
21
{
22
22
unsigned long flags ;
23
23
@@ -44,12 +44,12 @@ extern inline void native_restore_fl(unsigned long flags)
44
44
:"memory" , "cc" );
45
45
}
46
46
47
- static inline void native_irq_disable (void )
47
+ static __always_inline void native_irq_disable (void )
48
48
{
49
49
asm volatile ("cli" : : :"memory" );
50
50
}
51
51
52
- static inline void native_irq_enable (void )
52
+ static __always_inline void native_irq_enable (void )
53
53
{
54
54
asm volatile ("sti" : : :"memory" );
55
55
}
@@ -74,22 +74,22 @@ static inline __cpuidle void native_halt(void)
74
74
#ifndef __ASSEMBLY__
75
75
#include <linux/types.h>
76
76
77
- static inline notrace unsigned long arch_local_save_flags (void )
77
+ static __always_inline unsigned long arch_local_save_flags (void )
78
78
{
79
79
return native_save_fl ();
80
80
}
81
81
82
- static inline notrace void arch_local_irq_restore (unsigned long flags )
82
+ static __always_inline void arch_local_irq_restore (unsigned long flags )
83
83
{
84
84
native_restore_fl (flags );
85
85
}
86
86
87
- static inline notrace void arch_local_irq_disable (void )
87
+ static __always_inline void arch_local_irq_disable (void )
88
88
{
89
89
native_irq_disable ();
90
90
}
91
91
92
- static inline notrace void arch_local_irq_enable (void )
92
+ static __always_inline void arch_local_irq_enable (void )
93
93
{
94
94
native_irq_enable ();
95
95
}
@@ -115,7 +115,7 @@ static inline __cpuidle void halt(void)
115
115
/*
116
116
* For spinlocks, etc:
117
117
*/
118
- static inline notrace unsigned long arch_local_irq_save (void )
118
+ static __always_inline unsigned long arch_local_irq_save (void )
119
119
{
120
120
unsigned long flags = arch_local_save_flags ();
121
121
arch_local_irq_disable ();
@@ -159,12 +159,12 @@ static inline notrace unsigned long arch_local_irq_save(void)
159
159
#endif /* CONFIG_PARAVIRT_XXL */
160
160
161
161
#ifndef __ASSEMBLY__
162
- static inline int arch_irqs_disabled_flags (unsigned long flags )
162
+ static __always_inline int arch_irqs_disabled_flags (unsigned long flags )
163
163
{
164
164
return !(flags & X86_EFLAGS_IF );
165
165
}
166
166
167
- static inline int arch_irqs_disabled (void )
167
+ static __always_inline int arch_irqs_disabled (void )
168
168
{
169
169
unsigned long flags = arch_local_save_flags ();
170
170
0 commit comments