Remove the bloat of the C calling convention out of the
preempt_enable() sites by creating an ASM wrapper which allows us to
do an asm("call ___preempt_schedule") instead.
calling.h bits by Andi Kleen
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-tk7xdi1cvvxewixzke8t8le1@git.kernel.org
[ Fixed build error. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
25 lines
368 B
ArmAsm
25 lines
368 B
ArmAsm
|
|
#include <linux/linkage.h>
|
|
#include <asm/dwarf2.h>
|
|
#include <asm/asm.h>
|
|
#include <asm/calling.h>
|
|
|
|
ENTRY(___preempt_schedule)
|
|
CFI_STARTPROC
|
|
SAVE_ALL
|
|
call preempt_schedule
|
|
RESTORE_ALL
|
|
ret
|
|
CFI_ENDPROC
|
|
|
|
#ifdef CONFIG_CONTEXT_TRACKING
|
|
|
|
ENTRY(___preempt_schedule_context)
|
|
CFI_STARTPROC
|
|
SAVE_ALL
|
|
call preempt_schedule_context
|
|
RESTORE_ALL
|
|
ret
|
|
CFI_ENDPROC
|
|
|
|
#endif
|