[PATCH v3 1/2] arm64: add helper functions to read I-cache attributes
Will Deacon
will.deacon at arm.com
Thu Aug 7 10:27:19 PDT 2014
On Wed, Aug 06, 2014 at 04:46:05PM +0100, Ard Biesheuvel wrote:
> 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 at linaro.org>
> ---
> v3: add WARN_ON(preemptible()), move icache_get_ccsidr() to cpuinfo.c to
> prevent #include header recursion hell
> v2: put () around macro args, use 64-bit types for asm() mrs/msr calls
>
> arch/arm64/include/asm/cachetype.h | 20 ++++++++++++++++++++
> arch/arm64/kernel/cpuinfo.c | 14 ++++++++++++++
> 2 files changed, 34 insertions(+)
Acked-by: Will Deacon <will.deacon at arm.com>
Will
More information about the linux-arm-kernel
mailing list