Merge branch 'perf/core' into perf/probes
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / entry_32.S
index beb30da203d64548c9d5c3cbc411fe1b43f31f35..50b9c220e1213ceacf48e10f4f302a98b65ced4f 100644 (file)
@@ -1209,17 +1209,14 @@ END(ftrace_graph_caller)
 
 .globl return_to_handler
 return_to_handler:
-       pushl $0
        pushl %eax
-       pushl %ecx
        pushl %edx
        movl %ebp, %eax
        call ftrace_return_to_handler
-       movl %eax, 0xc(%esp)
+       movl %eax, %ecx
        popl %edx
-       popl %ecx
        popl %eax
-       ret
+       jmp *%ecx
 #endif
 
 .section .rodata,"a"