Skip to content

Commit

Permalink
Merge branch 'tracing/ftrace' into tracing/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Molnar committed Jan 29, 2009
2 parents 4a66a82 + 8902528 commit ce181eb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce181eb

Please sign in to comment.