]> git.baikalelectronics.ru Git - kernel.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)
commita2e68c230b27ade248d5e276e54ed89e701e9d5a
tree0dff152cf14260f272bf30d8d28269c10935e90f
parentc263d2b2d826ee234941492d3964dc74be36342b
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