mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 12:41:55 +00:00
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:
parent
4a66a82be7
commit
8902528237
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user