]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: scatterwalk - Hide PageSlab call to optimise away flush_dcache_page
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 1 Jun 2015 08:22:03 +0000 (16:22 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 02:51:25 +0000 (10:51 +0800)
commite13268059f4ddba62b9b0999f0ea91e8c9b81f1e
tree06a0f03134acaf222ed0b23a47d2a1e40cdd7808
parent53e0c7f14aab816f49f1bb896f78fc4416ca6343
crypto: scatterwalk - Hide PageSlab call to optimise away flush_dcache_page

On architectures where flush_dcache_page is not needed, we will
end up generating all the code up to the PageSlab call.  This is
because PageSlab operates on a volatile pointer and thus cannot
be optimised away.

This patch works around this by checking whether flush_dcache_page
is needed before we call PageSlab which then allows PageSlab to be
compiled awy.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c