MIPS: Add cacheinfo support
PATCH 1/2 MIPS: Add cacheinfo support
From: Justin Chen <[email protected]>
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 <[email protected]>
--- arch/mips/kernel/Makefile | 8 ++-- arch/mips/kernel/cacheinfo.c | 90 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 4 deletions(-) create mode 100644 arch/mips/kernel/cacheinfo.c
arch/mips/kernel/Makefile +4 -4
@@ -4,10 +4,10 @@ extra-y := head.o vmlinux.lds -obj-y += cpu-probe.o branch.o elf.o entry.o genex.o idle.o irq.o \ - process.o prom.o ptrace.o reset.o setup.o signal.o \ - syscall.o time.o topology.o traps.o unaligned.o watch.o \ - vdso.o +obj-y += cpu-probe.o branch.o cacheinfo.o elf.o entry.o genex.o \ + idle.o irq.o process.o prom.o ptrace.o reset.o setup.o \ + signal.o syscall.o time.o topology.o traps.o unaligned.o \ + watch.o vdso.o ifdef CONFIG_FUNCTION_TRACER CFLAGS_REMOVE_ftrace.o = -pg
arch/mips/kernel/cacheinfo.c new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
2.11.0