提交 89025282 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86: ftrace - simplify wait_for_nmi

Get rid of 'waited' stack variable.
Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 4a66a82b
......@@ -133,15 +133,14 @@ void ftrace_nmi_exit(void)
static void wait_for_nmi(void)
{
int waited = 0;
if (!atomic_read(&in_nmi))
return;
while (atomic_read(&in_nmi)) {
waited = 1;
do {
cpu_relax();
}
} while(atomic_read(&in_nmi));
if (waited)
nmi_wait_count++;
nmi_wait_count++;
}
static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册