parisc: more capabilities info in /proc/cpuinfo
authorHelge Deller <deller@gmx.de>
Fri, 21 Jun 2013 21:32:44 +0000 (23:32 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jul 2013 20:09:17 +0000 (22:09 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # 3.10
arch/parisc/kernel/processor.c

index c8fb61ed32f4eeee5bb27b648468e10da0962034..8a96c8ab9fe61a7bacf79b9653761616b5d70c5b 100644 (file)
@@ -371,10 +371,23 @@ show_cpuinfo (struct seq_file *m, void *v)
 
                seq_printf(m, "capabilities\t:");
                if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS32)
-                       seq_printf(m, " os32");
+                       seq_puts(m, " os32");
                if (boot_cpu_data.pdc.capabilities & PDC_MODEL_OS64)
-                       seq_printf(m, " os64");
-               seq_printf(m, "\n");
+                       seq_puts(m, " os64");
+               if (boot_cpu_data.pdc.capabilities & PDC_MODEL_IOPDIR_FDC)
+                       seq_puts(m, " iopdir_fdc");
+               switch (boot_cpu_data.pdc.capabilities & PDC_MODEL_NVA_MASK) {
+               case PDC_MODEL_NVA_SUPPORTED:
+                       seq_puts(m, " nva_supported");
+                       break;
+               case PDC_MODEL_NVA_SLOW:
+                       seq_puts(m, " nva_slow");
+                       break;
+               case PDC_MODEL_NVA_UNSUPPORTED:
+                       seq_puts(m, " needs_equivalent_aliasing");
+                       break;
+               }
+               seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities);
 
                seq_printf(m, "model\t\t: %s\n"
                                "model name\t: %s\n",