1. 03 Aug, 2011 2 commits
    • Magnus Damm's avatar
      serial: sh-sci: fix DMA build by including dma-mapping.h · 5beabc7f
      Magnus Damm authored
      Include dma-mapping.h to fix build of the sh-sci driver on
      SH-Mobile ARM (sh73a0) when CONFIG_SERIAL_SH_SCI_DMA=y:
      
      drivers/tty/serial/sh-sci.c: In function 'sci_rx_dma_release':
      drivers/tty/serial/sh-sci.c:1182:3: error: implicit declaration of function 'dma_free_coherent'
      drivers/tty/serial/sh-sci.c: In function 'work_fn_tx':
      drivers/tty/serial/sh-sci.c:1333:2: error: implicit declaration of function 'dma_sync_sg_for_device'
      drivers/tty/serial/sh-sci.c: In function 'sci_request_dma':
      drivers/tty/serial/sh-sci.c:1498:3: error: implicit declaration of function 'dma_map_sg'
      drivers/tty/serial/sh-sci.c:1527:3: error: implicit declaration of function 'dma_alloc_coherent'
      drivers/tty/serial/sh-sci.c:1527:10: warning: assignment makes pointer from integer without a cast
      make[3]: *** [drivers/tty/serial/sh-sci.o] Error 1
      make[2]: *** [drivers/tty/serial] Error 2
      make[1]: *** [drivers/tty] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Tested-by: default avatarSimon Horman <horms@verge.net.au>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      5beabc7f
    • Paul Mundt's avatar
      serial: sh-sci: Fix up default regtype probing. · ad75b88a
      Paul Mundt authored
      Presently the default regtype probing inadvertently bails out due to an
      inverted error check. This fixes it up, and gets platforms without
      explicit regtype specifications working again.
      Reported-by: default avatarMagnus Damm <damm@opensource.se>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      ad75b88a
  2. 02 Aug, 2011 2 commits
    • Oleg Nesterov's avatar
      oom: task->mm == NULL doesn't mean the memory was freed · c027a474
      Oleg Nesterov authored
      exit_mm() sets ->mm == NULL then it does mmput()->exit_mmap() which
      frees the memory.
      
      However select_bad_process() checks ->mm != NULL before TIF_MEMDIE,
      so it continues to kill other tasks even if we have the oom-killed
      task freeing its memory.
      
      Change select_bad_process() to check ->mm after TIF_MEMDIE, but skip
      the tasks which have already passed exit_notify() to ensure a zombie
      with TIF_MEMDIE set can't block oom-killer. Alternatively we could
      probably clear TIF_MEMDIE after exit_mmap().
      Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
      Reviewed-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c027a474
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6 · cfe22345
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: (23 commits)
        regulator: Improve WM831x DVS VSEL selection algorithm
        regulator: Bootstrap wm831x DVS VSEL value from ON VSEL if not already set
        regulator: Set up GPIO for WM831x VSEL before enabling VSEL mode
        regulator: Add EPEs to the MODULE_ALIAS() for wm831x-dcdc
        regulator: Fix WM831x DCDC DVS VSEL bootstrapping
        regulator: Fix WM831x regulator ID lookups for multiple WM831xs
        regulator: Fix argument format type errors in error prints
        regulator: Fix memory leak in set_machine_constraints() error paths
        regulator: Make core more chatty about some errors
        regulator: tps65910: Fix array access out of bounds bug
        regulator: tps65910: Add missing breaks in switch/case
        regulator: tps65910: Fix a memory leak in tps65910_probe error path
        regulator: TWL: Remove entry of RES_ID for 6030 macros
        ASoC: tlv320aic3x: Add correct hw registers to Line1 cross connect muxes
        regulator: Add basic per consumer debugfs
        regulator: Add rdev_crit() macro
        regulator: Refactor supply implementation to work as regular consumers
        regulator: Include the device name in the microamps_requested_ file
        regulator: Increase the limit on sysfs file names
        regulator: Properly register dummy regulator driver
        ...
      cfe22345
  3. 01 Aug, 2011 36 commits