]> git.baikalelectronics.ru Git - kernel.git/commit
make __section_nr() more efficient
authorZhou Chengming <zhouchengming1@huawei.com>
Thu, 28 Jul 2016 22:48:35 +0000 (15:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jul 2016 23:07:41 +0000 (16:07 -0700)
commit8c41a02b9065970141788d3fd6cd0f7785c1c025
tree8e33bf623881a0471ff611f3176f603cc27efe7d
parent3a03b4f6c8903bdaf74fc864af84dd8ac43b419c
make __section_nr() more efficient

When CONFIG_SPARSEMEM_EXTREME is disabled, __section_nr can get the
section number with a subtraction directly.

Link: http://lkml.kernel.org/r/1468988310-11560-1-git-send-email-zhouchengming1@huawei.com
Signed-off-by: Zhou Chengming <zhouchengming1@huawei.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Hanjun Guo <guohanjun@huawei.com>
Cc: Li Bin <huawei.libin@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/sparse.c