crypto: omap-sham - use runtime_pm autosuspend for clock handling
authorTero Kristo <t-kristo@ti.com>
Wed, 22 Jun 2016 13:23:34 +0000 (16:23 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jun 2016 13:24:57 +0000 (21:24 +0800)
commite93f767bec1c4b58ac24bd59143c0030b9555426
tree14a837de9cbcd2d2665dfa34f21126bcfb4d7f6f
parent3c4b23901a0c766879dff680cd6bdab47bcdbbd2
crypto: omap-sham - use runtime_pm autosuspend for clock handling

Calling runtime PM API for every block causes serious performance hit to
crypto operations that are done on a long buffer. As crypto is performed
on a page boundary, encrypting large buffers can cause a series of crypto
operations divided by page. The runtime PM API is also called those many
times.

Convert the driver to use runtime_pm autosuspend instead, with a default
timeout value of 1 second. This results in upto ~50% speedup.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c