]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Add cacheinfo support
authorJustin Chen <justin.chen@broadcom.com>
Thu, 8 Dec 2016 01:16:26 +0000 (17:16 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:46 +0000 (16:34 +0100)
commitef462f3b64e9fb0c8e1cd5d60f5bd7f13ac2156d
tree173a0ccbec594be974a620d2bf23c90d506beaaa
parent0014dea6b71ae3e0384c3358f632b4728c3d432e
MIPS: Add cacheinfo support

Add cacheinfo support for MIPS architectures.

Use information from the cpuinfo_mips struct to populate the
cacheinfo struct. This allows an architecture agnostic approach,
however this also means if cache information is not properly
populated within the cpuinfo_mips struct, there is nothing
we can do. (I.E. c-r3k.c)

Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Cc: f.fainelli@gmail.com
Cc: linux-mips@linux-mips.org
Cc: bcm-kernel-feedback-list@broadcom.com
Patchwork: https://patchwork.linux-mips.org/patch/14650/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/Makefile
arch/mips/kernel/cacheinfo.c [new file with mode: 0644]