projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1539d58
)
proc: faster /proc/cmdline
author
Alexey Dobriyan
<
[email protected]
>
Tue, 10 Apr 2018 23:32:01 +0000
(16:32 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:34 +0000
(10:28 -0700)
Use seq_puts() and skip format string processing.
Link:
http://lkml.kernel.org/r/20180309222948.GB3843@avx2
Signed-off-by: Alexey Dobriyan <
[email protected]
>
Reviewed-by: Andrew Morton <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/cmdline.c
patch
|
blob
|
history
diff --git
a/fs/proc/cmdline.c
b/fs/proc/cmdline.c
index 403cbb12a6e9b428fb56f0767492a0dd3acde536..8233e7af9389dc8316e71a4f42e0206a6ceb5e9b 100644
(file)
--- a/
fs/proc/cmdline.c
+++ b/
fs/proc/cmdline.c
@@
-6,7
+6,8
@@
static int cmdline_proc_show(struct seq_file *m, void *v)
{
- seq_printf(m, "%s\n", saved_command_line);
+ seq_puts(m, saved_command_line);
+ seq_putc(m, '\n');
return 0;
}