]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/64s: Consolidate SLB assertions
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:23:28 +0000 (19:23 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Nov 2018 08:28:53 +0000 (19:28 +1100)
commit6f168410b8595b6574fc5cb7d94e4c6e2ec85b96
treefe6a050b5f5d016f2ba413c0e37485dbdedade21
parent8fd5c0842185795e606aa6a47997ac410a6f6d26
powerpc/mm/64s: Consolidate SLB assertions

The code for assert_slb_exists() and assert_slb_notexists() is almost
identical, except for the polarity of the WARN_ON(). In a future patch
we'll need to modify this code, so consolidate it now into a single
function.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c