arm64: mm: use ubfm for dcache_line_size

Use 'ubfm' for the bitfield move instruction; thus, single
instruction can be used instead of two instructions, when
getting the minimum D-cache line size from CTR_EL0 register.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by Jingoo Han and committed by Catalin Marinas bd5f6dc3 883c0573

+1 -2
+1 -2
arch/arm64/mm/proc-macros.S
··· 38 */ 39 .macro dcache_line_size, reg, tmp 40 mrs \tmp, ctr_el0 // read CTR 41 - lsr \tmp, \tmp, #16 42 - and \tmp, \tmp, #0xf // cache line size encoding 43 mov \reg, #4 // bytes per word 44 lsl \reg, \reg, \tmp // actual cache line size 45 .endm
··· 38 */ 39 .macro dcache_line_size, reg, tmp 40 mrs \tmp, ctr_el0 // read CTR 41 + ubfm \tmp, \tmp, #16, #19 // cache line size encoding 42 mov \reg, #4 // bytes per word 43 lsl \reg, \reg, \tmp // actual cache line size 44 .endm