aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-02-20 13:47:12 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:48 -0400
commitf84c3a429f83a98bb0b0fd7eed7ad1edc512b91c (patch)
tree0108b26015748f7865e3ee4010610f9c77dbcd8b /arch/x86/kernel/cpu
parenta967ceac01cd3847011e2a777b8365b30afa770a (diff)
x86: add power management line in /proc/cpuinfo
Change /proc/cpuinfo on 32-bit, it will look like on 64-bit. 'power management' line is added and power management information will be printed at the line. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu')
-rw-r--r--arch/x86/kernel/cpu/proc.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index 9bc3b04421cd..fd3823a18c0b 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arch/x86/kernel/cpu/proc.c
@@ -94,7 +94,13 @@ static int show_cpuinfo(struct seq_file *m, void *v)
94 if (cpu_has(c, i) && x86_cap_flags[i] != NULL) 94 if (cpu_has(c, i) && x86_cap_flags[i] != NULL)
95 seq_printf(m, " %s", x86_cap_flags[i]); 95 seq_printf(m, " %s", x86_cap_flags[i]);
96 96
97 for (i = 0; i < 32; i++) 97 seq_printf(m, "\nbogomips\t: %lu.%02lu\n",
98 c->loops_per_jiffy/(500000/HZ),
99 (c->loops_per_jiffy/(5000/HZ)) % 100);
100 seq_printf(m, "clflush size\t: %u\n", c->x86_clflush_size);
101
102 seq_printf(m, "power management:");
103 for (i = 0; i < 32; i++) {
98 if (c->x86_power & (1 << i)) { 104 if (c->x86_power & (1 << i)) {
99 if (i < ARRAY_SIZE(x86_power_flags) && 105 if (i < ARRAY_SIZE(x86_power_flags) &&
100 x86_power_flags[i]) 106 x86_power_flags[i])
@@ -104,11 +110,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
104 else 110 else
105 seq_printf(m, " [%d]", i); 111 seq_printf(m, " [%d]", i);
106 } 112 }
113 }
107 114
108 seq_printf(m, "\nbogomips\t: %lu.%02lu\n", 115 seq_printf(m, "\n\n");
109 c->loops_per_jiffy/(500000/HZ),
110 (c->loops_per_jiffy/(5000/HZ)) % 100);
111 seq_printf(m, "clflush size\t: %u\n\n", c->x86_clflush_size);
112 116
113 return 0; 117 return 0;
114} 118}