* [PATCH] remove constant_tsc reporting from /proc/cpuinfo' power flags
@ 2007-03-01 11:31 Joerg Roedel
0 siblings, 0 replies; only message in thread
From: Joerg Roedel @ 2007-03-01 11:31 UTC (permalink / raw)
To: discuss; +Cc: Andi Kleen, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
From: Joerg Roedel <joerg.roedel@amd.com>
This patch removes 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>
--
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG
[-- Attachment #2: cleanup-tsc_invariant-reporting.patch --]
[-- Type: text/plain, Size: 902 bytes --]
diff --git a/arch/i386/kernel/cpu/proc.c b/arch/i386/kernel/cpu/proc.c
index 47e3ebb..89d91e6 100644
--- a/arch/i386/kernel/cpu/proc.c
+++ b/arch/i386/kernel/cpu/proc.c
@@ -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;
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 3d98b69..4aad515 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -987,9 +987,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 */
};
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-01 13:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 11:31 [PATCH] remove constant_tsc reporting from /proc/cpuinfo' power flags Joerg Roedel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.