Skip to content

Commit

Permalink
[PATCH] x86: remove constant_tsc reporting from /proc/cpuinfo' power …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Joerg Roedel authored and Andi Kleen committed May 2, 2007
1 parent 382591d commit d824395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions arch/i386/kernel/cpu/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
"stc",
"100mhzsteps",
"hwpstate",
NULL,
NULL, /* constant_tsc - moved to flags */
"", /* constant_tsc - moved to flags */
/* nothing */
};
struct cpuinfo_x86 *c = v;
Expand Down
5 changes: 2 additions & 3 deletions arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,9 +979,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
"stc",
"100mhzsteps",
"hwpstate",
NULL, /* tsc invariant mapped to constant_tsc */
NULL,
/* nothing */ /* constant_tsc - moved to flags */
"", /* tsc invariant mapped to constant_tsc */
/* nothing */
};


Expand Down

0 comments on commit d824395

Please sign in to comment.