Skip to content

Commit ce181eb

Browse files
author
Ingo Molnar
committed
Merge branch 'tracing/ftrace' into tracing/core
2 parents 4a66a82 + 8902528 commit ce181eb

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎arch/x86/kernel/ftrace.c‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,14 @@ void ftrace_nmi_exit(void)
133133

134134
static void wait_for_nmi(void)
135135
{
136-
int waited = 0;
136+
if (!atomic_read(&in_nmi))
137+
return;
137138

138-
while (atomic_read(&in_nmi)) {
139-
waited = 1;
139+
do {
140140
cpu_relax();
141-
}
141+
} while(atomic_read(&in_nmi));
142142

143-
if (waited)
144-
nmi_wait_count++;
143+
nmi_wait_count++;
145144
}
146145

147146
static int

0 commit comments

Comments
 (0)