x86/msr: Make rdmsrl_safe_on_cpu() scheduling safe as well
authorEric Dumazet <edumazet@google.com>
Wed, 28 Mar 2018 03:22:33 +0000 (20:22 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Mar 2018 08:34:13 +0000 (10:34 +0200)
commit9b9a51354cae933f5640b5bb73bbcd32f989122f
tree8d5a3b47268670797edbd662f69b0e13041ec5a6
parent67bbd7a8d6bcdc44cc27105ae8c374e9176ceaf1
x86/msr: Make rdmsrl_safe_on_cpu() scheduling safe as well

When changing rdmsr_safe_on_cpu() to schedule, it was missed that
__rdmsr_safe_on_cpu() was also used by rdmsrl_safe_on_cpu()

Make rdmsrl_safe_on_cpu() a wrapper instead of copy/pasting the code which
was added for the completion handling.

Fixes: 07cde313b2d2 ("x86/msr: Allow rdmsr_safe_on_cpu() to schedule")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lkml.kernel.org/r/20180328032233.153055-1-edumazet@google.com
arch/x86/lib/msr-smp.c