aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r--arch/x86_64/kernel/setup.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index d9c1c3bd6150..ee3a5cd7d8d9 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -1233,7 +1233,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
1233 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1233 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
1234 NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL, 1234 NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL,
1235 NULL, NULL, NULL, NULL, "nx", NULL, "mmxext", NULL, 1235 NULL, NULL, NULL, NULL, "nx", NULL, "mmxext", NULL,
1236 NULL, "fxsr_opt", NULL, NULL, NULL, "lm", "3dnowext", "3dnow", 1236 NULL, "fxsr_opt", "rdtscp", NULL, NULL, "lm", "3dnowext", "3dnow",
1237 1237
1238 /* Transmeta-defined */ 1238 /* Transmeta-defined */
1239 "recovery", "longrun", NULL, "lrti", NULL, NULL, NULL, NULL, 1239 "recovery", "longrun", NULL, "lrti", NULL, NULL, NULL, NULL,
@@ -1261,7 +1261,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
1261 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1261 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
1262 1262
1263 /* AMD-defined (#2) */ 1263 /* AMD-defined (#2) */
1264 "lahf_lm", "cmp_legacy", NULL, NULL, NULL, NULL, NULL, NULL, 1264 "lahf_lm", "cmp_legacy", "svm", NULL, "cr8_legacy", NULL, NULL, NULL,
1265 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1265 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
1266 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1266 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
1267 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1267 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
@@ -1272,8 +1272,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
1272 "vid", /* voltage id control */ 1272 "vid", /* voltage id control */
1273 "ttp", /* thermal trip */ 1273 "ttp", /* thermal trip */
1274 "tm", 1274 "tm",
1275 "stc" 1275 "stc",
1276 "?", 1276 NULL,
1277 /* nothing */ /* constant_tsc - moved to flags */ 1277 /* nothing */ /* constant_tsc - moved to flags */
1278 }; 1278 };
1279 1279
@@ -1354,8 +1354,11 @@ static int show_cpuinfo(struct seq_file *m, void *v)
1354 unsigned i; 1354 unsigned i;
1355 for (i = 0; i < 32; i++) 1355 for (i = 0; i < 32; i++)
1356 if (c->x86_power & (1 << i)) { 1356 if (c->x86_power & (1 << i)) {
1357 if (i < ARRAY_SIZE(x86_power_flags)) 1357 if (i < ARRAY_SIZE(x86_power_flags) &&
1358 seq_printf(m, " %s", x86_power_flags[i]); 1358 x86_power_flags[i])
1359 seq_printf(m, "%s%s",
1360 x86_power_flags[i][0]?" ":"",
1361 x86_power_flags[i]);
1359 else 1362 else
1360 seq_printf(m, " [%d]", i); 1363 seq_printf(m, " [%d]", i);
1361 } 1364 }