diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2017-07-11 01:51:29 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-11 02:32:34 +0300 |
commit | e5af323c9badd5dc09af7ccf9d45616ebffc623c (patch) | |
tree | da5f5087eb7c2eb2c5953bd34e5facc714de9d67 /drivers/pnp/Makefile | |
parent | 3cc78125a081bb79eb38f3e9a585e5a81bb81cb1 (diff) | |
download | linux-e5af323c9badd5dc09af7ccf9d45616ebffc623c.tar.xz |
bitmap: optimise bitmap_set and bitmap_clear of a single bit
We have eight users calling bitmap_clear for a single bit and seventeen
calling bitmap_set for a single bit. Rather than fix all of them to
call __clear_bit or __set_bit, turn bitmap_clear and bitmap_set into
inline functions and make this special case efficient.
Link: http://lkml.kernel.org/r/20170628153221.11322-3-willy@infradead.org
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/Makefile')
0 files changed, 0 insertions, 0 deletions