Skip to content

Commit

Permalink
Merge branch 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/li…
Browse files Browse the repository at this point in the history
…nux/kernel/git/tip/tip

Pull x86 debug update from Ingo Molnar:
 "A single fix for an off-by one bug in test_nmi_ipi() that probably
  doesn't matter in practice"

* 'x86-debug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/nmi: Fix timeout test in test_nmi_ipi()
  • Loading branch information
Linus Torvalds committed Jul 3, 2017
2 parents 6553698 + c133c76 commit e6529f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/nmi_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static void __init test_nmi_ipi(struct cpumask *mask)

/* Don't wait longer than a second */
timeout = USEC_PER_SEC;
while (!cpumask_empty(mask) && timeout--)
while (!cpumask_empty(mask) && --timeout)
udelay(1);

/* What happens if we timeout, do we still unregister?? */
Expand Down

0 comments on commit e6529f6

Please sign in to comment.