]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Create msr_check_and_{set,clear}()
authorAnton Blanchard <anton@samba.org>
Thu, 29 Oct 2015 00:44:04 +0000 (11:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Dec 2015 02:52:25 +0000 (13:52 +1100)
commitd70267d2801ab8a9647ae4edf21b265a4d0f1d6f
tree341c39ac34fad618accdb2a37aaba9af83a1a6d7
parent3df6de9e11842aa5fb4636b1768348a0224b6757
powerpc: Create msr_check_and_{set,clear}()

Create helper functions to set and clear MSR bits after first
checking if they are already set. Grouping them will make it
easy to avoid the MSR writes in a subsequent optimisation.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c