arm64: vdso: clean up vdso_pagelist initialization
authorNathan Lynch <nathan_lynch@mentor.com>
Tue, 11 Feb 2014 22:28:42 +0000 (22:28 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 17:41:44 +0000 (18:41 +0100)
commit17ef801d93fada1828f553e362b8029e19a6735d
treec1df64771e5a6ac420009f33c4401a101169183e
parentce13b8ed049445435a9af9fdfcbcd84c04451301
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>
(cherry picked from commit 16fb1a9bec6126162560f159df449e4781560807)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/kernel/vdso.c