Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192165
b: refs/heads/master
c: 636eb9c
h: refs/heads/master
i:
  192163: 9a8bada
v: v3
  • Loading branch information
Brian Swetland authored and Daniel Walker committed May 12, 2010
1 parent ee80756 commit 798e8b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1207babdcdfe5501d1528c86b445a9d1045ecc01
refs/heads/master: 636eb9cbaef7989ce7809a0d842bf78470a0a1f4
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-msm/include/mach/msm_smd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/arm/mach-msm/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,16 @@ int smd_write(smd_channel_t *ch, const void *data, int len)
return ch->write(ch, data, len);
}

int smd_write_atomic(smd_channel_t *ch, const void *data, int len)
{
unsigned long flags;
int res;
spin_lock_irqsave(&smd_lock, flags);
res = ch->write(ch, data, len);
spin_unlock_irqrestore(&smd_lock, flags);
return res;
}

int smd_read_avail(smd_channel_t *ch)
{
return ch->read_avail(ch);
Expand Down

0 comments on commit 798e8b9

Please sign in to comment.