x86: reimplement ___preempt_schedule*() using THUNK helpers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 16 repliesIn review
- v21 of 2 patches 0 repliesSuperseded
- v12 patches 4 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86: reimplement ___preempt_schedule*() using THUNK helpersarch/ arch/ arch/ +1 more | +23 | 19 replies | |
| 2/2 | x86, lib/Makefile: remove the unnecessary "+= thunk_64.o"arch/ | +1 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Andy Lutomirski |
|---|---|
| 1/2 | R-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] x86: reimplement ___preempt_schedule*() using THUNK helpers
Peter, Ingo, please consider for inclusion.
Changes:
v3: added the acks from Andy, otherwise unchanged
v2: fix the naming in thunk_32.S (thanks Denys!)
And it seems that the patch below (on top of 1/2) also makes sense...
Oleg.
arch/x86/kernel/Makefile | 2 -- arch/x86/kernel/preempt.S | 25 ------------------------- arch/x86/lib/Makefile | 2 +- arch/x86/lib/thunk_32.S | 20 ++++++++++++++++---- arch/x86/lib/thunk_64.S | 7 +++++++ 5 files changed, 24 insertions(+), 32 deletions(-)
arch/x86/include/asm/irqflags.h +2 -11
@@ -166,8 +166,9 @@ static inline int arch_irqs_disabled(voi#else -#ifdef CONFIG_X86_64 #define ARCH_LOCKDEP_SYS_EXIT call lockdep_sys_exit_thunk + +#ifdef CONFIG_X86_64 #define ARCH_LOCKDEP_SYS_EXIT_IRQ \ TRACE_IRQS_ON; \ sti; \
@@ -176,17 +177,7 @@ static inline int arch_irqs_disabled(voiRESTORE_REST ; \ cli; \TRACE_IRQS_OFF ; -#else -#define ARCH_LOCKDEP_SYS_EXIT \ - pushl %eax; \ - pushl %ecx; \ - pushl %edx; \ - call lockdep_sys_exit; \ - popl %edx; \ - popl %ecx; \ - popl %eax; -#define ARCH_LOCKDEP_SYS_EXIT_IRQ #endif
arch/x86/lib/thunk_32.S +4 -0
@@ -33,6 +33,10 @@ THUNK trace_hardirqs_off_thunk,trace_hardirqs_off_caller,1 #endif +#ifdef CONFIG_DEBUG_LOCK_ALLOC + THUNK lockdep_sys_exit_thunk,lockdep_sys_exit +#endif + #ifdef CONFIG_PREEMPT THUNK ___preempt_schedule, preempt_schedule #ifdef CONFIG_CONTEXT_TRACKING