ARM: rockchip: show Processor on cpuinfo, for some Andorid QQ games
author黄涛 <huangtao@rock-chips.com>
Tue, 27 May 2014 08:52:03 +0000 (16:52 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 27 May 2014 08:52:03 +0000 (16:52 +0800)
arch/arm/kernel/setup.c

index 1e839e0ed5b727174ea2e912695561de76bca9fa..c73f3f863464f3025f50a7642d8fe20937ff0c9b 100644 (file)
@@ -922,6 +922,10 @@ static int c_show(struct seq_file *m, void *v)
        int i, j;
        u32 cpuid;
 
+#ifdef CONFIG_ARCH_ROCKCHIP
+       seq_printf(m, "Processor\t: %s rev %d (%s)\n",
+                  cpu_name, read_cpuid_id() & 15, elf_platform);
+#endif
        for_each_online_cpu(i) {
                /*
                 * glibc reads /proc/cpuinfo to determine the number of