WAR: arch: arm: add Processor entry for compatibility
Shu Zhang [Tue, 27 Aug 2013 06:53:56 +0000 (14:53 +0800)]
Some legacy applications depend on "Processor" entry from
/proc/cpuinfo to detect cpu information.
Add "Processor" entry back to avoid null pointer issues.

Bug 1356278
Bug 1353101
Bug 1348757
Bug 1326291
Bug 1353766
Bug 1270814

Change-Id: I92f6ac0fdced812f228c9984fd47e133e8548355
Signed-off-by: Shu Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/268998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

arch/arm/kernel/setup.c

index 8e31172..e69810c 100644 (file)
@@ -939,6 +939,8 @@ static int c_show(struct seq_file *m, void *v)
        seq_printf(m, "Serial\t\t: %08x%08x\n",
                   system_serial_high, system_serial_low);
 
+       seq_printf(m, "Processor\t: %s rev %d (%s)\n",
+                          cpu_name, cpuid & 15, elf_platform);
        return 0;
 }