1. 16 Oct, 2019 1 commit
    • Mike Rapoport's avatar
      arm64: use generic free_initrd_mem() · 899ee4af
      Mike Rapoport authored
      arm64 calls memblock_free() for the initrd area in its implementation of
      free_initrd_mem(), but this call has no actual effect that late in the boot
      process. By the time initrd is freed, all the reserved memory is managed by
      the page allocator and the memblock.reserved is unused, so the only purpose
      of the memblock_free() call is to keep track of initrd memory for debugging
      and accounting.
      
      Without the memblock_free() call the only difference between arm64 and the
      generic versions of free_initrd_mem() is the memory poisoning.
      
      Move memblock_free() call to the generic code, enable it there
      for the architectures that define ARCH_KEEP_MEMBLOCK and use the generic
      implementation of free_initrd_mem() on arm64.
      
      Tested-by: Anshuman Khandual <anshuman.khandual@arm.com>	#arm64
      Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      899ee4af
  2. 14 Oct, 2019 1 commit
    • Mark Rutland's avatar
      arm64: simplify syscall wrapper ifdeffery · ce87de45
      Mark Rutland authored
      Back in commit:
      
        4378a7d4 ("arm64: implement syscall wrappers")
      
      ... I implemented the arm64 syscall wrapper glue following the approach
      taken on x86. While doing so, I also copied across some ifdeffery that
      isn't necessary on arm64.
      
      On arm64 we don't share any of the native wrappers with compat tasks,
      and unlike x86 we don't have alternative implementations of
      SYSCALL_DEFINE0(), COND_SYSCALL(), or SYS_NI() defined when AArch32
      compat support is enabled.
      
      Thus we don't need to prevent multiple definitions of these macros, and
      can remove the #ifndef ... #endif guards protecting them. If any of
      these had been previously defined elsewhere, syscalls are unlikely to
      work correctly, and we'd want the compiler to warn about the multiple
      definitions.
      Acked-by: default avatarWill Deacon <will@kernel.org>
      Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      ce87de45
  3. 13 Oct, 2019 16 commits
  4. 12 Oct, 2019 22 commits