diff options
author | Huacai Chen <chenhc@lemote.com> | 2014-06-25 23:41:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-07-30 15:45:39 -0400 |
commit | bda4584cd943d7bb6cf677a8d694700c1984cf3e (patch) | |
tree | 892cd5d6ad7a03cf2a111f51de9921b2f8c8cf3b /arch/mips/kernel/proc.c | |
parent | 0f3f506b275517250ee0169ec075d5382967f5f6 (diff) |
MIPS: Support CPU topology files in sysfs
This patch is prepared for Loongson's NUMA support, it offer meaningful
sysfs files such as physical_package_id, core_id, core_siblings and
thread_siblings in /sys/devices/system/cpu/cpu?/topology.
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Reviewed-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/7184/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/proc.c')
-rw-r--r-- | arch/mips/kernel/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 037a44d962f3..62c4439a147b 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c | |||
@@ -123,6 +123,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) | |||
123 | cpu_data[n].srsets); | 123 | cpu_data[n].srsets); |
124 | seq_printf(m, "kscratch registers\t: %d\n", | 124 | seq_printf(m, "kscratch registers\t: %d\n", |
125 | hweight8(cpu_data[n].kscratch_mask)); | 125 | hweight8(cpu_data[n].kscratch_mask)); |
126 | seq_printf(m, "package\t\t\t: %d\n", cpu_data[n].package); | ||
126 | seq_printf(m, "core\t\t\t: %d\n", cpu_data[n].core); | 127 | seq_printf(m, "core\t\t\t: %d\n", cpu_data[n].core); |
127 | 128 | ||
128 | sprintf(fmt, "VCE%%c exceptions\t\t: %s\n", | 129 | sprintf(fmt, "VCE%%c exceptions\t\t: %s\n", |