]> 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)
commitac5c9140b8b37e1512735e16ac7be18f2d860f31
tree0dff152cf14260f272bf30d8d28269c10935e90f
parent8f7eba24a476db2089e6bb310fb35d20af5d871a
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