alloc_percpu: Use __get_cpu_ptr in crypto/

Impact: slight efficiency improvement on some archs.

Let's use __get_cpu_ptr and get_cpu_ptr now, rather than
per_cpu_ptr(..., smp_processor_id()).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
---
 crypto/async_tx/async_tx.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c
--- a/crypto/async_tx/async_tx.c
+++ b/crypto/async_tx/async_tx.c
@@ -391,9 +391,8 @@ __async_tx_find_channel(struct dma_async
 		return depend_tx->chan;
 	else if (likely(channel_table_initialized)) {
 		struct dma_chan_ref *ref;
-		int cpu = get_cpu();
-		ref = per_cpu_ptr(channel_table[tx_type], cpu)->ref;
-		put_cpu();
+		ref = get_cpu_ptr(channel_table[tx_type])->ref;
+		put_cpu_ptr(channel_table[tx_type]);
 		return ref ? ref->chan : NULL;
 	} else
 		return NULL;
