powerpc: Return the new MSR from msr_check_and_set()
authorCyril Bur <cyrilbur@gmail.com>
Fri, 23 Sep 2016 06:18:10 +0000 (16:18 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 05:43:06 +0000 (16:43 +1100)
commit3cee070a13b141b8eb5727c3bfa9920092f87264
tree5c915a45afba8a0783c377c4e84988a27e64d380
parentb0f16b46988fde02a1e32078f66a3059d7e53bfc
powerpc: Return the new MSR from msr_check_and_set()

msr_check_and_set() always performs a mfmsr() to determine if it needs
to perform an mtmsr(), as mfmsr() can be a costly operation
msr_check_and_set() could return the MSR now on the CPU to avoid
callers of msr_check_and_set having to make their own mfmsr() call.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/process.c