diff options
author | Libing Zhou <libing.zhou@nokia-sbell.com> | 2020-08-20 05:56:41 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-10-01 15:42:08 +0300 |
commit | f94c91f7ba3ba7de2bc8aa31be28e1abb22f849e (patch) | |
tree | aa1048ce5484a96d123b071ae55113055381f98a /Documentation/x86 | |
parent | ea4e3bef4c94d5b5d8e790f37b48b7641172bcf5 (diff) | |
download | linux-f94c91f7ba3ba7de2bc8aa31be28e1abb22f849e.tar.xz |
x86/nmi: Fix nmi_handle() duration miscalculation
When nmi_check_duration() is checking the time an NMI handler took to
execute, the whole_msecs value used should be read from the @duration
argument, not from the ->max_duration, the latter being used to store
the current maximal duration.
[ bp: Rewrite commit message. ]
Fixes: 248ed51048c4 ("x86/nmi: Remove irq_work from the long duration NMI handler")
Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Libing Zhou <libing.zhou@nokia-sbell.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Changbin Du <changbin.du@gmail.com>
Link: https://lkml.kernel.org/r/20200820025641.44075-1-libing.zhou@nokia-sbell.com
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions