aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-11-28 16:03:41 -0500
committerIngo Molnar <mingo@kernel.org>2014-12-08 05:48:15 -0500
commit3736708f034ae1e8c62789ed737e8b90d5b40210 (patch)
tree84cacbd0d74c840be9a8170d9581563696d4e455 /arch/x86/platform
parenta1a5831d295f34eceec3ba12c199c2c070e1aaed (diff)
x86: Replace seq_printf() with seq_puts()
seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: http://lkml.kernel.org/r/1417208622-12264-1-git-send-email-linux@rasmusvillemoes.dk Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r--arch/x86/platform/uv/tlb_uv.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index 3968d67d366b..ab4062c5953c 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -1367,20 +1367,18 @@ static int ptc_seq_show(struct seq_file *file, void *data)
1367 1367
1368 cpu = *(loff_t *)data; 1368 cpu = *(loff_t *)data;
1369 if (!cpu) { 1369 if (!cpu) {
1370 seq_printf(file, 1370 seq_puts(file,
1371 "# cpu bauoff sent stime self locals remotes ncpus localhub "); 1371 "# cpu bauoff sent stime self locals remotes ncpus localhub ");
1372 seq_printf(file, 1372 seq_puts(file, "remotehub numuvhubs numuvhubs16 numuvhubs8 ");
1373 "remotehub numuvhubs numuvhubs16 numuvhubs8 "); 1373 seq_puts(file,
1374 seq_printf(file, 1374 "numuvhubs4 numuvhubs2 numuvhubs1 dto snacks retries ");
1375 "numuvhubs4 numuvhubs2 numuvhubs1 dto snacks retries "); 1375 seq_puts(file,
1376 seq_printf(file, 1376 "rok resetp resett giveup sto bz throt disable ");
1377 "rok resetp resett giveup sto bz throt disable "); 1377 seq_puts(file,
1378 seq_printf(file, 1378 "enable wars warshw warwaits enters ipidis plugged ");
1379 "enable wars warshw warwaits enters ipidis plugged "); 1379 seq_puts(file,
1380 seq_printf(file, 1380 "ipiover glim cong swack recv rtime all one mult ");
1381 "ipiover glim cong swack recv rtime all one mult "); 1381 seq_puts(file, "none retry canc nocan reset rcan\n");
1382 seq_printf(file,
1383 "none retry canc nocan reset rcan\n");
1384 } 1382 }
1385 if (cpu < num_possible_cpus() && cpu_online(cpu)) { 1383 if (cpu < num_possible_cpus() && cpu_online(cpu)) {
1386 bcp = &per_cpu(bau_control, cpu); 1384 bcp = &per_cpu(bau_control, cpu);