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)
commit92bb6cb1403015b1b9520332c8f2ad983c220f67
treebd2b8cf5929a5f172a43d10ea55b0cc84fd37d17
parentd81fa669e3de7eb8a631d7d95dac5fbcb2bf9d4e
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