]> git.baikalelectronics.ru Git - kernel.git/commit
x86, ftrace: Use safe noops, drop trap test
authorH. Peter Anvin <hpa@zytor.com>
Thu, 28 Oct 2010 04:09:15 +0000 (21:09 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Oct 2010 17:07:59 +0000 (13:07 -0400)
commitb3e05272e8e8fdc4e0c9a6ea495a83495b040f01
treea29e74a2a9e8ad6e8086acd2c242de14b6fa2755
parent7a077f534dcbd6273e914a9fc330971847719b78
x86, ftrace: Use safe noops, drop trap test

Always use a safe 5-byte noop sequence.  Drop the trap test, since it
is known to return false negatives on some virtualization platforms on
32 bits.  The resulting code is both simpler and safer.

Cc: Daniel Drake <dsd@laptop.org>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/alternative.c