23 Dec, 2011

2 commits


22 Dec, 2011

7 commits

  • Fixes checkpatch warnings with the ashmem.c file

    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    John Stultz
     
  • The arguments to shrink functions have changed, update
    ashmem_shrink to match.

    Signed-off-by: Colin Cross
    [jstultz: tweaked commit subject]
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Colin Cross
     
  • Signed-off-by: Bjorn Bringert
    [jstultz: tweaked commit subject]
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Bringert
     
  • Signed-off-by: Colin Cross
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Colin Cross
     
  • Signed-off-by: Arve Hjønnevåg
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Arve Hjønnevåg
     
  • Signed-off-by: Bjorn Bringert
    [jstultz: Tweaked commit subject]
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Bjorn Bringert
     
  • The anonymous shared memory (ashmem) subsystem provides a
    Unix-y,file-based shared memory interface to user-space. It
    works like anonymous memory (e.g. mmapping fd=0) except if
    you share the file descriptor via the usual means, you will
    share the mapping. The shared memory can be accessed via both
    mmap or file I/O. The backing store is a simple shmem file.

    Additionally, ashmem introduces the concept of page pinning.
    Pinned pages (the default) behave like any anonymous memory.
    Unpinned pages are available to the kernel for eviction during
    VM pressure. When repinning the pages, the return value
    instructs user-space as to any eviction. In this manner,
    user-space processes may implement caching and similar
    resource management that efficiently integrates with kernel
    memory management.

    Signed-off-by: Robert Love

    ashmem: Don't install fault handler for private mmaps.

    Ashmem is used to create named private heaps. If this heap is backed
    by a tmpfs file it will allocate two pages for every page touched.
    In 2.6.27, the extra page would later be freed, but 2.6.29 does not
    scan anonymous pages when running without swap so the memory is not
    freed while the file is referenced. This change changes the behavior
    of private ashmem mmaps to match /dev/zero instead tmpfs.

    Signed-off-by: Arve Hjønnevåg

    ashmem: Add common prefix to name reported in /proc/pid/maps

    Signed-off-by: Arve Hjønnevåg

    ashmem: don't require a page aligned size

    This makes ashmem more similar to shmem and mmap, by
    not requiring the specified size to be page aligned,
    instead rounding it internally as needed.

    Signed-off-by: Marco Nelissen
    [jstultz: Improved commit subject and included patch description
    from rlove. Also moved ashmem files to staging dir, and reworked
    code to avoid touching mm/shmem.c while we're in staging.]
    CC: Brian Swetland
    CC: Colin Cross
    CC: Arve Hjønnevåg
    CC: Dima Zavin
    CC: Robert Love
    Signed-off-by: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Robert Love
     

17 Dec, 2011

4 commits

  • This adds the Android pmem driver to the staging tree.

    [At this point in time, it is dependent on the ARM platform, due to some
    build issues that require it. - gregkh]

    Signed-off-by: Rebecca Schultz
    Signed-off-by: Rebecca Schultz Zavin
    Signed-off-by: Dima Zavin
    Signed-off-by: Jamie Gennis
    Cc: Brian Swetland
    Cc: Arve Hjønnevåg
    Cc: Colin Cross
    Signed-off-by: Greg Kroah-Hartman

    Rebecca Schultz
     
  • This fixes a number of minor space issues in the Android switch code.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This adds the Android switch driver code to the staging tree.

    [Note, this code was located in drivers/switch/ in the Android kernel
    releases, but as that api wasn't generally accepted, and the interface
    is working toward changing to the newly proposed extcon inteface, this
    driver was placed here until the extcon code is merged into mainline and
    the Android userspace code is converted over to using it. - gregkh]

    Signed-off-by: Arve Hjønnevåg
    Signed-off-by: Mike Lockwood
    Cc: MyungJoo Ham
    Cc: Kyungmin Park
    Cc: Donggeun Kim
    Cc: Arnd Bergmann
    Cc: MyungJoo Ham
    Cc: Linus Walleij
    Cc: Dmitry Torokhov
    Cc: NeilBrown
    Cc: Morten CHRISTIANSEN
    Cc: Mark Brown
    Cc: John Stultz
    Signed-off-by: Greg Kroah-Hartman

    Mike Lockwood
     
  • This patch fixes some space-before-tabs warnings found by checkpatch tool on the staging android driver file logger.c

    Signed-off-by: Marco Navarra
    Signed-off-by: Greg Kroah-Hartman

    Marco Navarra
     

30 Nov, 2011

22 commits


12 Dec, 2009

1 commit


31 Oct, 2009

1 commit


16 Sep, 2009

3 commits

  • This was done using a semantic patch (http://coccinelle.lip6.fr/) that
    checks that the declaration is not inside a function definition, that the
    defined variable is not exported using EXPORTED_SYMBOL, etc, and that the
    defined variable does not occur in any other file. If these conditions
    hold, static is added before the declaration.

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     
  • Move module_params to near the end of the source file so that
    their references are already known/defined. Fixes build errors:

    drivers/staging/android/lowmemorykiller.c: In function '__check_cost':
    drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared (first use in this function)
    drivers/staging/android/lowmemorykiller.c: At top level:
    drivers/staging/android/lowmemorykiller.c:60: error: 'lowmem_shrinker' undeclared here (not in a function)
    drivers/staging/android/lowmemorykiller.c:60: warning: type defaults to 'int' in declaration of 'type name'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Clean up 3 or so checkpatch errors from one of my prior patches.

    Signed-off-by: Daniel Walker
    Cc: Arve Hjønnevåg
    Cc: Brian Swetland
    Signed-off-by: Greg Kroah-Hartman

    Daniel Walker