]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: apply __ro_after_init to some objects
authorJisheng Zhang <jszhang@marvell.com>
Mon, 15 Aug 2016 06:45:46 +0000 (14:45 +0800)
committerWill Deacon <will.deacon@arm.com>
Mon, 22 Aug 2016 11:32:29 +0000 (12:32 +0100)
commit5a9e3e156ec1ab26ba70b4c44157858c92bbeee0
tree08786b2c7e30101dc85dd29b6cf8e43be55cd2d5
parentb6d081bddf397026575a437b603b118dff2606ff
arm64: apply __ro_after_init to some objects

These objects are set during initialization, thereafter are read only.

Previously I only want to mark vdso_pages, vdso_spec, vectors_page and
cpu_ops as __read_mostly from performance point of view. Then inspired
by Kees's patch[1] to apply more __ro_after_init for arm, I think it's
better to mark them as __ro_after_init. What's more, I find some more
objects are also read only after init. So apply __ro_after_init to all
of them.

This patch also removes global vdso_pagelist and tries to clean up
vdso_spec[] assignment code.

[1] http://www.spinics.net/lists/arm-kernel/msg523188.html

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpu_ops.c
arch/arm64/kernel/kaslr.c
arch/arm64/kernel/vdso.c
arch/arm64/mm/dma-mapping.c
arch/arm64/mm/init.c
arch/arm64/mm/mmu.c