commit | 646cdf0083e3d4a9b995f37b72c3c8a22d9307de | [log] [tgz] |
---|---|---|
author | Tomas Henzl <thenzl@redhat.com> | Wed Jul 09 17:21:01 2014 +0530 |
committer | Christoph Hellwig <hch@lst.de> | Fri Jul 25 17:17:04 2014 -0400 |
tree | f0730421a40f2037a840489a8afdce0e4b2c1598 | |
parent | 5533abca06e07121697ed1d30863ce03e7c518e5 [diff] |
pm8001: add a new spinlock to protect the CCB Patch adds a new spinlock to protect the ccb management. It may happen that concurrent threads become the same tag value from the 'alloc' function', the spinlock prevents this situation. Signed-off-by: Tomas Henzl <thenzl@redhat.com> Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com> Acked-by: Jack Wang <xjtuwjp@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>