Commit 46db36ab authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Thomas Gleixner

x86/entry: Rename ___preempt_schedule

Because moar '_' isn't always moar readable.

git grep -l "___preempt_schedule\(_notrace\)*" | while read file;
do
	sed -ie 's/___preempt_schedule\(_notrace\)*/preempt_schedule\1_thunk/g' $file;
done
Reported-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarWill Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20200320115858.995685950@infradead.org
parent ffd75b37
...@@ -35,9 +35,9 @@ SYM_CODE_END(\name) ...@@ -35,9 +35,9 @@ SYM_CODE_END(\name)
#endif #endif
#ifdef CONFIG_PREEMPTION #ifdef CONFIG_PREEMPTION
THUNK ___preempt_schedule, preempt_schedule THUNK preempt_schedule_thunk, preempt_schedule
THUNK ___preempt_schedule_notrace, preempt_schedule_notrace THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace
EXPORT_SYMBOL(___preempt_schedule) EXPORT_SYMBOL(preempt_schedule_thunk)
EXPORT_SYMBOL(___preempt_schedule_notrace) EXPORT_SYMBOL(preempt_schedule_notrace_thunk)
#endif #endif
...@@ -47,10 +47,10 @@ SYM_FUNC_END(\name) ...@@ -47,10 +47,10 @@ SYM_FUNC_END(\name)
#endif #endif
#ifdef CONFIG_PREEMPTION #ifdef CONFIG_PREEMPTION
THUNK ___preempt_schedule, preempt_schedule THUNK preempt_schedule_thunk, preempt_schedule
THUNK ___preempt_schedule_notrace, preempt_schedule_notrace THUNK preempt_schedule_notrace_thunk, preempt_schedule_notrace
EXPORT_SYMBOL(___preempt_schedule) EXPORT_SYMBOL(preempt_schedule_thunk)
EXPORT_SYMBOL(___preempt_schedule_notrace) EXPORT_SYMBOL(preempt_schedule_notrace_thunk)
#endif #endif
#if defined(CONFIG_TRACE_IRQFLAGS) \ #if defined(CONFIG_TRACE_IRQFLAGS) \
......
...@@ -103,14 +103,14 @@ static __always_inline bool should_resched(int preempt_offset) ...@@ -103,14 +103,14 @@ static __always_inline bool should_resched(int preempt_offset)
} }
#ifdef CONFIG_PREEMPTION #ifdef CONFIG_PREEMPTION
extern asmlinkage void ___preempt_schedule(void); extern asmlinkage void preempt_schedule_thunk(void);
# define __preempt_schedule() \ # define __preempt_schedule() \
asm volatile ("call ___preempt_schedule" : ASM_CALL_CONSTRAINT) asm volatile ("call preempt_schedule_thunk" : ASM_CALL_CONSTRAINT)
extern asmlinkage void preempt_schedule(void); extern asmlinkage void preempt_schedule(void);
extern asmlinkage void ___preempt_schedule_notrace(void); extern asmlinkage void preempt_schedule_notrace_thunk(void);
# define __preempt_schedule_notrace() \ # define __preempt_schedule_notrace() \
asm volatile ("call ___preempt_schedule_notrace" : ASM_CALL_CONSTRAINT) asm volatile ("call preempt_schedule_notrace_thunk" : ASM_CALL_CONSTRAINT)
extern asmlinkage void preempt_schedule_notrace(void); extern asmlinkage void preempt_schedule_notrace(void);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment