]> git.karo-electronics.de Git - linux-beck.git/commit
arm64: kernel: add support for cpu cache information
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 8 Jan 2015 10:42:34 +0000 (10:42 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 15 Jan 2015 11:55:07 +0000 (11:55 +0000)
commit5d425c18653731af62831d30a4fa023d532657a9
tree0dff152cf14260f272bf30d8d28269c10935e90f
parent26a945caf381225c9a1e68f14826a884c08ea9cb
arm64: kernel: add support for cpu cache information

This patch adds support for cacheinfo on ARM64.

On ARMv8, the cache hierarchy can be identified through Cache Level ID
(CLIDR) register while the cache geometry is provided by Cache Size ID
(CCSIDR) register.

Since the architecture doesn't provide any way of detecting the cpus
sharing particular cache, device tree is used for the same purpose.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cachetype.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/cacheinfo.c [new file with mode: 0644]
arch/arm64/kernel/cpuinfo.c