We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656d054 commit 1894a40Copy full SHA for 1894a40
arch/x86/include/asm/processor.h
@@ -559,7 +559,7 @@ static __always_inline void native_swapgs(void)
559
#endif
560
}
561
562
-static inline unsigned long current_top_of_stack(void)
+static __always_inline unsigned long current_top_of_stack(void)
563
{
564
/*
565
* We can't read directly from tss.sp0: sp0 on x86_32 is special in
@@ -569,7 +569,7 @@ static inline unsigned long current_top_of_stack(void)
569
return this_cpu_read_stable(cpu_current_top_of_stack);
570
571
572
-static inline bool on_thread_stack(void)
+static __always_inline bool on_thread_stack(void)
573
574
return (unsigned long)(current_top_of_stack() -
575
current_stack_pointer) < THREAD_SIZE;
0 commit comments