Commit 3a4c2601 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Michael Ellerman

powerpc/mm: Add translation mode information in /proc/cpuinfo

With this we have on powernv and pseries /proc/cpuinfo reporting

timebase        : 512000000
platform        : PowerNV
model           : 8247-22L
machine         : PowerNV 8247-22L
firmware        : OPAL
MMU		: Hash
Reviewed-by: default avatarPaul Mackerras <paulus@ozlabs.org>
Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent ddb014b6
...@@ -95,6 +95,10 @@ static void pnv_show_cpuinfo(struct seq_file *m) ...@@ -95,6 +95,10 @@ static void pnv_show_cpuinfo(struct seq_file *m)
else else
seq_printf(m, "firmware\t: BML\n"); seq_printf(m, "firmware\t: BML\n");
of_node_put(root); of_node_put(root);
if (radix_enabled())
seq_printf(m, "MMU\t\t: Radix\n");
else
seq_printf(m, "MMU\t\t: Hash\n");
} }
static void pnv_prepare_going_down(void) static void pnv_prepare_going_down(void)
......
...@@ -87,6 +87,10 @@ static void pSeries_show_cpuinfo(struct seq_file *m) ...@@ -87,6 +87,10 @@ static void pSeries_show_cpuinfo(struct seq_file *m)
model = of_get_property(root, "model", NULL); model = of_get_property(root, "model", NULL);
seq_printf(m, "machine\t\t: CHRP %s\n", model); seq_printf(m, "machine\t\t: CHRP %s\n", model);
of_node_put(root); of_node_put(root);
if (radix_enabled())
seq_printf(m, "MMU\t\t: Radix\n");
else
seq_printf(m, "MMU\t\t: Hash\n");
} }
/* Initialize firmware assisted non-maskable interrupts if /* Initialize firmware assisted non-maskable interrupts if
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment