提交 f84c3a42 编写于 作者: H Hiroshi Shimamoto 提交者: Ingo Molnar

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: NHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 a967ceac
...@@ -94,7 +94,13 @@ static int show_cpuinfo(struct seq_file *m, void *v) ...@@ -94,7 +94,13 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if (cpu_has(c, i) && x86_cap_flags[i] != NULL) if (cpu_has(c, i) && x86_cap_flags[i] != NULL)
seq_printf(m, " %s", x86_cap_flags[i]); seq_printf(m, " %s", x86_cap_flags[i]);
for (i = 0; i < 32; i++) seq_printf(m, "\nbogomips\t: %lu.%02lu\n",
c->loops_per_jiffy/(500000/HZ),
(c->loops_per_jiffy/(5000/HZ)) % 100);
seq_printf(m, "clflush size\t: %u\n", c->x86_clflush_size);
seq_printf(m, "power management:");
for (i = 0; i < 32; i++) {
if (c->x86_power & (1 << i)) { if (c->x86_power & (1 << i)) {
if (i < ARRAY_SIZE(x86_power_flags) && if (i < ARRAY_SIZE(x86_power_flags) &&
x86_power_flags[i]) x86_power_flags[i])
...@@ -104,11 +110,9 @@ static int show_cpuinfo(struct seq_file *m, void *v) ...@@ -104,11 +110,9 @@ static int show_cpuinfo(struct seq_file *m, void *v)
else else
seq_printf(m, " [%d]", i); seq_printf(m, " [%d]", i);
} }
}
seq_printf(m, "\nbogomips\t: %lu.%02lu\n", seq_printf(m, "\n\n");
c->loops_per_jiffy/(500000/HZ),
(c->loops_per_jiffy/(5000/HZ)) % 100);
seq_printf(m, "clflush size\t: %u\n\n", c->x86_clflush_size);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册