[PATCH] x86: remove constant_tsc reporting from /proc/cpuinfo' power flags

remove the reporting of the constant_tsc flag from the "power management"
field in /proc/cpuinfo.  The NULL value there was replaced by "" because
the former would result in a printout of [8] if the flag is set.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
Joerg Roedel 2007-05-02 19:27:09 +02:00 committed by Andi Kleen
parent 382591d500
commit d824395c59
2 changed files with 3 additions and 5 deletions

View File

@ -72,8 +72,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
"stc", "stc",
"100mhzsteps", "100mhzsteps",
"hwpstate", "hwpstate",
NULL, "", /* constant_tsc - moved to flags */
NULL, /* constant_tsc - moved to flags */
/* nothing */ /* nothing */
}; };
struct cpuinfo_x86 *c = v; struct cpuinfo_x86 *c = v;

View File

@ -979,9 +979,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
"stc", "stc",
"100mhzsteps", "100mhzsteps",
"hwpstate", "hwpstate",
NULL, /* tsc invariant mapped to constant_tsc */ "", /* tsc invariant mapped to constant_tsc */
NULL, /* nothing */
/* nothing */ /* constant_tsc - moved to flags */
}; };