arm64: add helper functions to read I-cache attributes
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 8 Aug 2014 11:51:39 +0000 (12:51 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Sep 2014 13:39:18 +0000 (14:39 +0100)
commit80c517b0ff71a4c874fed9196fd990d2d9e911f3
treecd8df96023742759d214a0a2c1bc02680a2f35be
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
arm64: add helper functions to read I-cache attributes

This adds helper functions and #defines to <asm/cachetype.h> to read the
line size and the number of sets from the level 1 instruction cache.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cachetype.h
arch/arm64/kernel/cpuinfo.c