x86: ftrace - simplify wait_for_nmi

Get rid of 'waited' stack variable.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Cyrill Gorcunov 2009-01-26 18:28:02 +03:00 committed by Ingo Molnar
parent 4a66a82be7
commit 8902528237

View File

@ -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