Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140670
b: refs/heads/master
c: 8902528
h: refs/heads/master
v: v3
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jan 27, 2009
1 parent b70b29c commit 9293bc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a66a82be78e1b6f9f83074423bf42a52251414c
refs/heads/master: 890252823766e562301e61340f3187a14033d045
11 changes: 5 additions & 6 deletions trunk/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 9293bc0

Please sign in to comment.