]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Thu, 5 Oct 2017 00:54:25 +0000 (17:54 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 5 Oct 2017 12:34:55 +0000 (14:34 +0200)
commit87201b1e237090f59dfb90d2b357248ef60c6331
treebd2b8cf5929a5f172a43d10ea55b0cc84fd37d17
parent1d12a13d107b5649c7514977560435f39ccbec16
x86/mce: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly. Adjust sanity-check WARN to make sure
the triggering timer matches the current CPU timer.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac@vger.kernel.org
Link: https://lkml.kernel.org/r/20171005005425.GA23950@beast
arch/x86/kernel/cpu/mcheck/mce.c