Re: [v3][PATCH 2/4] x86: warn when NMI handlers take large amountsof time

From: Peter Zijlstra
Date: Thu May 30 2013 - 05:38:04 EST


On Wed, May 29, 2013 at 03:27:59PM -0700, Dave Hansen wrote:

> +static u64 nmi_longest_ns = 1000 * 1000 * 1000;

1s? Isn't that a tad too long?

FWIW there's NSEC_PER_{U,M,}SEC for such cases, I find those macros
increase readability.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/