]> git.karo-electronics.de Git - mv-sheeva.git/commit
msm: smd: provide atomic channel writes
authorBrian Swetland <swetland@google.com>
Mon, 7 Dec 2009 23:28:08 +0000 (15:28 -0800)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 12 May 2010 16:15:31 +0000 (09:15 -0700)
commit636eb9cbaef7989ce7809a0d842bf78470a0a1f4
tree1a12088ad69cb37d5e3f3f25bdf03c7c9e8a7846
parent1207babdcdfe5501d1528c86b445a9d1045ecc01
msm: smd: provide atomic channel writes

Some smd clients may write from multiple threads, in which case it's
not safe to call smd_write without holding a lock.  smd_write_atomic()
provides the same functionality as smd_write() but obtains the smd
lock first.

Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/include/mach/msm_smd.h
arch/arm/mach-msm/smd.c