mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
x86: ftrace - simplify wait_for_nmi
Get rid of 'waited' stack variable. Signed-off-by: Cyrill Gorcunov <[email protected]> Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
4a66a82be7
commit
8902528237
1 changed files with 5 additions and 6 deletions
|
|
@ -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 a new issue