crypto: omap-sham - replace flags operation with atomic bit operations
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Thu, 2 Jun 2011 18:10:06 +0000 (21:10 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:44:02 +0000 (07:44 +0800)
commita929cbeef7d8e5c3603a6f43b977c03c922aada3
treedd5321e7f54daf6eea76902523312a87ed56ad10
parentea1fd2246f3c3c6b739529db2a547fa080cf09a3
crypto: omap-sham - replace flags operation with atomic bit operations

Some flags are changed in interrupt handlers and verified in the tasklet.
There might be a race condition when tasklet is interrupted or another
cpu/core will run IRQ handler and tasklet in parallel.
Atomic bitops functions are now used instead of bitmask operations.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c