diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-11-18 00:27:32 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-18 01:10:01 +0100 |
commit | 8c703d660450c4df72ff24f79a335dc7973a9dc8 (patch) | |
tree | e7eecbd614bbd2548d82ba66b5b28cb7e7840bf6 /lib/dynamic_debug.c | |
parent | include/linux/compiler-clang.h: handle randomizable anonymous structs (diff) | |
download | linux-8c703d660450c4df72ff24f79a335dc7973a9dc8.tar.xz linux-8c703d660450c4df72ff24f79a335dc7973a9dc8.zip |
kernel/umh.c: optimize 'proc_cap_handler()'
If 'write' is 0, we can avoid a call to spin_lock/spin_unlock.
Link: http://lkml.kernel.org/r/20171020193331.7233-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions