diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:20:51 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:20:51 -0400 |
| commit | ad5da3cf39a5b11a198929be1f2644e17ecd767e (patch) | |
| tree | 22d98f2a14db70e7229ec3b9c944488f2d50d4a1 /arch/mips/kernel/rtlx.c | |
| parent | da8ac5e0fab11d0e84be4e49aaaa828c52d17097 (diff) | |
| parent | 14cf232ab161ce87ca538af3daad5f717c20d487 (diff) | |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (22 commits)
[MIPS] Don't force frame pointers for lockdep on MIPS
[MIPS] update vr41xx Kconfig
[MIPS] remove 2 select entries for VR41xx
[MIPS] rename VR41XX to VR4100 series
[MIPS] Use DEFINE_SPINLOCK instead of SPIN_LOCK_UNLOCKED.
[MIPS] Replace old fashioned "__typeof" with "__typeof__".
[MIPS] Remove unused _THREAD_SIZE_ORDER from asm-offset.c.
[MIPS] Change PCI host bridge setup/resources
[MIPS] Register PCI host bridge resource earlier
[MIPS] Remove pnx8550-v2pci_defconfig
[MIPS] Add bcm1480 ZBus trace support, fix wait related bugs
[MIPS] Updated Sibyte headers
[MIPS] Remove unused argument from kunmap_coherent().
[MIPS] Malta: Delete unused prototype of mips_timer_interrupt.
[MIPS] Select ZONE_DMA only if GENERIC_ISA_DMA selected
[MIPS] MIPS Tech: Get rid of volatile in core code.
[MIPS] IP22: Get rid of volatile in IP22 core code.
[MIPS] JMR3927 cleanup
[MIPS] merge GT64111 PCI routines and GT64120 PCI_0 routines
[MIPS] Cobalt: Split PCI codes from setup.c
...
Diffstat (limited to 'arch/mips/kernel/rtlx.c')
| -rw-r--r-- | arch/mips/kernel/rtlx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index e6e3047151a6..bfc8ca168f83 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
| @@ -289,7 +289,7 @@ unsigned int rtlx_write_poll(int index) | |||
| 289 | return write_spacefree(chan->rt_read, chan->rt_write, chan->buffer_size); | 289 | return write_spacefree(chan->rt_read, chan->rt_write, chan->buffer_size); |
| 290 | } | 290 | } |
| 291 | 291 | ||
| 292 | ssize_t rtlx_read(int index, void __user *buff, size_t count, int user) | 292 | ssize_t rtlx_read(int index, void __user *buff, size_t count) |
| 293 | { | 293 | { |
| 294 | size_t lx_write, fl = 0L; | 294 | size_t lx_write, fl = 0L; |
| 295 | struct rtlx_channel *lx; | 295 | struct rtlx_channel *lx; |
| @@ -331,9 +331,10 @@ out: | |||
| 331 | return count; | 331 | return count; |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | ssize_t rtlx_write(int index, const void __user *buffer, size_t count, int user) | 334 | ssize_t rtlx_write(int index, const void __user *buffer, size_t count) |
| 335 | { | 335 | { |
| 336 | struct rtlx_channel *rt; | 336 | struct rtlx_channel *rt; |
| 337 | unsigned long failed; | ||
| 337 | size_t rt_read; | 338 | size_t rt_read; |
| 338 | size_t fl; | 339 | size_t fl; |
| 339 | 340 | ||
| @@ -363,7 +364,7 @@ ssize_t rtlx_write(int index, const void __user *buffer, size_t count, int user) | |||
| 363 | } | 364 | } |
| 364 | 365 | ||
| 365 | out: | 366 | out: |
| 366 | count -= cailed; | 367 | count -= failed; |
| 367 | 368 | ||
| 368 | smp_wmb(); | 369 | smp_wmb(); |
| 369 | rt->rt_write = (rt->rt_write + count) % rt->buffer_size; | 370 | rt->rt_write = (rt->rt_write + count) % rt->buffer_size; |
