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>
This commit is contained in:
Brian Swetland 2009-12-07 15:28:08 -08:00 • committed by Daniel Walker
commit 636eb9cbae
2 changed files with 11 additions and 0 deletions