11 Jan, 2012

1 commit

  • * tag 'for-linux-3.3-merge-window' of git://linux-c6x.org/git/projects/linux-c6x-upstreaming: (29 commits)
    C6X: replace tick_nohz_stop/restart_sched_tick calls
    C6X: add register_cpu call
    C6X: deal with memblock API changes
    C6X: fix timer64 initialization
    C6X: fix layout of EMIFA registers
    C6X: MAINTAINERS
    C6X: DSCR - Device State Configuration Registers
    C6X: EMIF - External Memory Interface
    C6X: general SoC support
    C6X: library code
    C6X: headers
    C6X: ptrace support
    C6X: loadable module support
    C6X: cache control
    C6X: clocks
    C6X: build infrastructure
    C6X: syscalls
    C6X: interrupt handling
    C6X: time management
    C6X: signal management
    ...

    Linus Torvalds
     

01 Nov, 2011

1 commit

  • On NOMMU architectures, if physical memory doesn't start from 0,
    ARCH_PFN_OFFSET is defined to generate page index in mem_map array.
    Because virtual address is equal to physical address, PAGE_OFFSET is
    always 0. virt_to_page and page_to_virt should not index page by
    PAGE_OFFSET directly.

    Signed-off-by: Sonic Zhang
    Cc: Greg Ungerer
    Cc: Geert Uytterhoeven
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sonic Zhang
     

07 Oct, 2011

1 commit


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