]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hash64: Factor out hash preload psize check
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 May 2016 06:46:00 +0000 (16:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:04 +0000 (21:54 +1000)
commit0b1812914d84a963036d4c4aae07f9bc79a33254
tree429f0fdd0a78e020be2cbb180c5a05c09a64be1a
parentacba343be87f7a916b399e1d6ac8bade18286b07
powerpc/mm/hash64: Factor out hash preload psize check

Currently we have a check in hash_preload() against the psize, which is
only included when CONFIG_PPC_MM_SLICES is enabled. We want to expand
this check in a subsequent patch, so factor it out to allow that. As a
bonus it removes the #ifdef in the C code.

Unfortunately we can't put this in the existing CONFIG_PPC_MM_SLICES
block because it would require a forward declaration.

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