]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: change __install_special_mapping() args order
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 6 Nov 2015 02:48:41 +0000 (18:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit601b7a533e67a1de480fbac592dc9d26197e4187
tree551af0dcf20b0cf04769dffb241f81c00b9f65a1
parent0ec4fa4163387181198b6d492929973adf0dd8eb
mm/mmap.c: change __install_special_mapping() args order

Make __install_special_mapping() args order match the caller, so the
caller can pass their register args directly to callee with no touch.

For most of architectures, args (at least the first 5th args) are in
registers, so this change will have effect on most of architectures.

For -O2, __install_special_mapping() may be inlined under most of
architectures, but for -Os, it should not. So this change can get a
little better performance for -Os, at least.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c