projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9d1e1
)
x86/entry: Inline enter_from_user_mode()
author
Paolo Bonzini
<
[email protected]
>
Mon, 20 Jun 2016 14:58:30 +0000
(16:58 +0200)
committer
Ingo Molnar
<
[email protected]
>
Sun, 10 Jul 2016 11:33:02 +0000
(13:33 +0200)
This matches what is already done for prepare_exit_to_usermode(),
and saves about 60 clock cycles (4% speedup) with the benchmark
in the previous commit message.
Signed-off-by: Paolo Bonzini <
[email protected]
>
Reviewed-by: Rik van Riel <
[email protected]
>
Reviewed-by: Andy Lutomirski <
[email protected]
>
Acked-by: Paolo Bonzini <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Brian Gerst <
[email protected]
>
Cc: Denys Vlasenko <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Josh Poimboeuf <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/entry/common.c
patch
|
blob
|
history
diff --git
a/arch/x86/entry/common.c
b/arch/x86/entry/common.c
index 618bc61d35b720ae1e171651d6e167b3e3725a29..9e1e27d31c6d6d9425f5fe4b0d916c26bd5d0abd 100644
(file)
--- a/
arch/x86/entry/common.c
+++ b/
arch/x86/entry/common.c
@@
-40,7
+40,7
@@
static struct thread_info *pt_regs_to_thread_info(struct pt_regs *regs)
#ifdef CONFIG_CONTEXT_TRACKING
/* Called on entry from user mode with IRQs off. */
-__visible void enter_from_user_mode(void)
+__visible
inline
void enter_from_user_mode(void)
{
CT_WARN_ON(ct_state() != CONTEXT_USER);
user_exit_irqoff();