arm64: vdso: clean up vdso_pagelist initialization
authorNathan Lynch <nathan_lynch@mentor.com>
Tue, 11 Feb 2014 22:28:42 +0000 (22:28 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 26 Feb 2014 11:16:30 +0000 (11:16 +0000)
commit16fb1a9bec6126162560f159df449e4781560807
tree4fd6e83caddba1b10a6d012b41c30d1365817795
parentbb10eb7b4d176f408d45fb492df28bed2981a1f3
arm64: vdso: clean up vdso_pagelist initialization

Remove some unnecessary bits that were apparently carried over from
another architecture's implementation:

- No need to get_page() the vdso text/data - these are part of the
  kernel image.
- No need for ClearPageReserved on the vdso text.
- No need to vmap the first text page to check the ELF header - this
  can be done through &vdso_start.

Also some minor cleanup:
- Use kcalloc for vdso_pagelist array allocation.
- Don't print on allocation failure, slab/slub will do that for us.

Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/vdso.c