1. 29 Mar, 2011 5 commits
  2. 28 Mar, 2011 2 commits
    • Graf Yang's avatar
      NOMMU: support SMP dynamic percpu_alloc · b554cb42
      Graf Yang authored
      The percpu code requires more functions to be implemented in the mm core
      which nommu currently does not provide.  So add inline implementations
      since these are largely meaningless on nommu systems.
      Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarGreg Ungerer <gerg@uclinux.org>
      b554cb42
    • David Howells's avatar
      NOMMU: percpu should use is_vmalloc_addr(). · eac522ef
      David Howells authored
      per_cpu_ptr_to_phys() uses VMALLOC_START and VMALLOC_END to determine if an
      address is in the vmalloc() region or not.  This is incorrect on NOMMU as
      there is no real vmalloc() capability (vmalloc() is emulated by kmalloc()).
      
      The correct way to do this is to use is_vmalloc_addr().  This encapsulates the
      vmalloc() region test in MMU mode and just returns 0 in NOMMU mode.
      
      On FRV in NOMMU mode, the percpu compilation fails without this patch:
      
      mm/percpu.c: In function 'per_cpu_ptr_to_phys':
      mm/percpu.c:1011: error: 'VMALLOC_START' undeclared (first use in this function)
      mm/percpu.c:1011: error: (Each undeclared identifier is reported only once
      mm/percpu.c:1011: error: for each function it appears in.)
      mm/percpu.c:1012: error: 'VMALLOC_END' undeclared (first use in this function)
      mm/percpu.c:1018: warning: control reaches end of non-void function
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      eac522ef
  3. 26 Mar, 2011 22 commits
  4. 25 Mar, 2011 11 commits