]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-sham - Use pm_runtime_irq_safe()
authorVutla, Lokesh <lokeshvutla@ti.com>
Tue, 31 Mar 2015 04:22:24 +0000 (09:52 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Apr 2015 14:22:43 +0000 (22:22 +0800)
commita7d4a357249ce7db3b0d27aa3de0572b96d8ab11
tree597b1416d5ca83864e2639df563883e1bde0bbcb
parent014322fd32deb5dd0c5f589fbaf2b6ec094efbe6
crypto: omap-sham - Use pm_runtime_irq_safe()

omap_sham_handle_queue() can be called as part of done_task tasklet.
During this its atomic and any calls to pm functions cannot sleep.

But there is a call to pm_runtime_get_sync() (which can sleep) in
omap_sham_handle_queue(), because of which the following appears:
" [  116.169969] BUG: scheduling while atomic: kworker/0:2/2676/0x00000100"

Add pm_runtime_irq_safe() to avoid this.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c