12 Jun, 2009

2 commits

  • Memory management in generic is highly architecture specific,
    but on NOMMU architectures, it is mostly trivial, so just
    add a default implementation in asm-generic that applies
    to all NOMMU architectures.

    The two files cache.h and cacheflush.h can possibly also
    be used by architectures that have an MMU but never require
    flushing the cache or have cache lines larger than 32 bytes.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     
  • The current asm-generic/page.h only contains the get_order
    function, and asm-generic/uaccess.h only implements
    unaligned accesses. This renames the file to getorder.h
    and uaccess-unaligned.h to make room for new page.h
    and uaccess.h file that will be usable by all simple
    (e.g. nommu) architectures.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

30 Apr, 2008

1 commit


07 Mar, 2007

1 commit

  • This reverts commit 39d61db0edb34d60b83c5e0d62d0e906578cc707.

    The commit was buggy in multiple ways:
    - the conversion to ilog2() was incorrect to begin with
    - it tested the wrong #defines, so on all architectures but FRV you'd
    never see the bug except for constant arguments.
    - the new "get_order()" macro used its arguments multiple times, and
    didn't even parenthesize them properly
    - despite the comments, it was not true that you could use it for
    constant initializers, since not all architectures even use the
    generic page.h header file.

    All of the problems are individually fixable, but it all boils down to:
    better just revert it, and re-do it from scratch.

    Cc: David Howells
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

09 Dec, 2006

1 commit


05 Sep, 2005

1 commit

  • Someone mentioned that almost all the architectures used basically the same
    implementation of get_order. This patch consolidates them into
    asm-generic/page.h and includes that in the appropriate places. The
    exceptions are ia64 and ppc which have their own (presumably optimised)
    versions.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell