Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89025282 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

x86: ftrace - simplify wait_for_nmi



Get rid of 'waited' stack variable.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4a66a82b
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -133,14 +133,13 @@ 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++;
}