mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
[ Fixed build error. ]
Signed-off-by: Ingo Molnar <[email protected]>
26 lines
368 B
ArmAsm
26 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
|