crypto: crypto_wq - Fix late crypto work queue initialization
authorTim Chen <tim.c.chen@linux.intel.com>
Mon, 17 Mar 2014 23:52:26 +0000 (16:52 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2014 13:54:28 +0000 (21:54 +0800)
commit130fa5bc81b44b6cc1fbdea3abf6db0da22964e0
tree93490a0a776c5740ed043af4c2a8a3fb246d7af0
parentec31eed754e2fd43938e72ef9e1b60aa55ccb417
crypto: crypto_wq - Fix late crypto work queue initialization

The crypto algorithm modules utilizing the crypto daemon could
be used early when the system start up.  Using module_init
does not guarantee that the daemon's work queue is initialized
when the cypto alorithm depending on crypto_wq starts.  It is necessary
to initialize the crypto work queue earlier at the subsystem
init time to make sure that it is initialized
when used.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_wq.c