diff options
author | Brian Swetland | 2009-12-08 00:28:08 +0100 |
---|---|---|
committer | Daniel Walker | 2010-05-12 18:15:31 +0200 |
commit | 636eb9cbaef7989ce7809a0d842bf78470a0a1f4 (patch) | |
tree | 1a12088ad69cb37d5e3f3f25bdf03c7c9e8a7846 /arch/arm/mach-msm/include/mach/msm_smd.h | |
parent | [ARM] msm: add /proc/last_radio_log when supported by the modem. (diff) | |
download | kernel-qcow2-linux-636eb9cbaef7989ce7809a0d842bf78470a0a1f4.tar.gz kernel-qcow2-linux-636eb9cbaef7989ce7809a0d842bf78470a0a1f4.tar.xz kernel-qcow2-linux-636eb9cbaef7989ce7809a0d842bf78470a0a1f4.zip |
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>
Diffstat (limited to 'arch/arm/mach-msm/include/mach/msm_smd.h')
-rw-r--r-- | arch/arm/mach-msm/include/mach/msm_smd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/include/mach/msm_smd.h b/arch/arm/mach-msm/include/mach/msm_smd.h index bdf7731ab680..aa076e466e4c 100644 --- a/arch/arm/mach-msm/include/mach/msm_smd.h +++ b/arch/arm/mach-msm/include/mach/msm_smd.h @@ -38,6 +38,7 @@ int smd_read(smd_channel_t *ch, void *data, int len); ** it will return the requested length written or an error. */ int smd_write(smd_channel_t *ch, const void *data, int len); +int smd_write_atomic(smd_channel_t *ch, const void *data, int len); int smd_write_avail(smd_channel_t *ch); int smd_read_avail(smd_channel_t *ch); |