diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2017-08-14 04:55:47 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-08-21 11:24:53 -0400 |
commit | 8165f70648da0a4a51e5871693781b2cc29b29d6 (patch) | |
tree | 90e0511c80395391995149f3ddf3b6b55db97881 | |
parent | 2fa59ec8ccf38bbc2193ae61aed9afa0687974e0 (diff) |
arm64: dma-mapping: Mark atomic_pool as __ro_after_init
atomic_pool is setup once while init stage and never changed after
that, so it is good candidate for __ro_after_init
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | arch/arm64/mm/dma-mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c index 7038e1a61397..614af886b7ef 100644 --- a/arch/arm64/mm/dma-mapping.c +++ b/arch/arm64/mm/dma-mapping.c | |||
@@ -42,7 +42,7 @@ static pgprot_t __get_dma_pgprot(unsigned long attrs, pgprot_t prot, | |||
42 | return prot; | 42 | return prot; |
43 | } | 43 | } |
44 | 44 | ||
45 | static struct gen_pool *atomic_pool; | 45 | static struct gen_pool *atomic_pool __ro_after_init; |
46 | 46 | ||
47 | #define DEFAULT_DMA_COHERENT_POOL_SIZE SZ_256K | 47 | #define DEFAULT_DMA_COHERENT_POOL_SIZE SZ_256K |
48 | static size_t atomic_pool_size __initdata = DEFAULT_DMA_COHERENT_POOL_SIZE; | 48 | static size_t atomic_pool_size __initdata = DEFAULT_DMA_COHERENT_POOL_SIZE; |