Skip to contentSkip to conversation

remove constant_tsc reporting from /proc/cpuinfo' power flags

PATCH New Joerg Roedel 1 participant 1 message Mar 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove constant_tsc reporting from /proc/cpuinfo' power flags

From: Joerg Roedel <[email protected]>

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.

Signature · 3 lines
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG
arch/i386/kernel/cpu/proc.c +1 -2
index 47e3ebb..89d91e6 100644
@@ -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;
arch/x86_64/kernel/setup.c +2 -3
index 3d98b69..4aad515 100644
@@ -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 */
 	};