RE: [PATCH] x86/nmi: Fix nmi_handle duration miscalculation

2020-08-19 Thread Zhou, Libing (NSB - CN/Hangzhou)
...@zytor.com Subject: Re: [PATCH] x86/nmi: Fix nmi_handle duration miscalculation On Mon, Aug 17, 2020 at 05:04:41PM +0800, Libing Zhou wrote: > In nmi_check_duration(), the 'whole_msecs' value should get from > 'duration' to reflect actual time duration, but not > &

Re: [PATCH] x86/nmi: Fix nmi_handle duration miscalculation

2020-08-19 Thread peterz
On Mon, Aug 17, 2020 at 05:04:41PM +0800, Libing Zhou wrote: > In nmi_check_duration(), the 'whole_msecs' value should > get from 'duration' to reflect actual time duration, > but not 'action->max_duration'. Fixes: 248ed51048c4 ("x86/nmi: Remove irq_work from the long duration NMI handler") > Si

[PATCH] x86/nmi: Fix nmi_handle duration miscalculation

2020-08-17 Thread Libing Zhou
In nmi_check_duration(), the 'whole_msecs' value should get from 'duration' to reflect actual time duration, but not 'action->max_duration'. Signed-off-by: Libing Zhou --- arch/x86/kernel/nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/nmi.c b/arch/x86/k