Home
last modified time | relevance | path

Searched hist:"9062 c1d0bedacf68d9c92cbd62c62a6fe6f6cebc" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iommu/
H A Dio-pgtable-arm.cdiff 9062c1d0bedacf68d9c92cbd62c62a6fe6f6cebc Mon Sep 09 15:19:19 CDT 2019 Christophe JAILLET <christophe.jaillet@wanadoo.fr> iommu/io-pgtable: Move some initialization data to .init.rodata

The memory used by '__init' functions can be freed once the initialization
phase has been performed.

Mark some 'static const' array defined and used within some '__init'
functions as '__initconst', so that the corresponding data can also be
discarded.

Without '__initconst', the data are put in the .rodata section.
With the qualifier, they are put in the .init.rodata section.

With gcc 8.3.0, the following changes have been measured:

Without '__initconst':
section size
.rodata 00000720
.init.rodata 00000018

With '__initconst':
section size
.rodata 00000660
.init.rodata 00000058

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Will Deacon <will@kernel.org>