From: Oleg Nesterov Date: Sun, 21 Sep 2014 18:41:53 +0000 (+0200) Subject: x86: Speed up ___preempt_schedule*() by using THUNK helpers X-Git-Tag: fixes-against-v3.18-rc2~96^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad6e3c5199be12c9745da8f8b9e3c9f8066c235;p=pandora-kernel.git x86: Speed up ___preempt_schedule*() by using THUNK helpers ___preempt_schedule() does SAVE_ALL/RESTORE_ALL but this is suboptimal, we do not need to save/restore the callee-saved register. And we already have arch/x86/lib/thunk_*.S which implements the similar asm wrappers, so it makes sense to redefine ___preempt_schedule() as "THUNK ..." and remove preempt.S altogether. Signed-off-by: Oleg Nesterov Reviewed-by: Andy Lutomirski Cc: Denys Vlasenko Cc: Peter Zijlstra Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20140921184153.GA23727@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed