diff options
author | Zhou Chengming <zhouchengming1@huawei.com> | 2016-07-29 00:48:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-29 01:07:41 +0200 |
commit | 91fd8b95d656dcd3f0a4e17b6583e7b0220b0747 (patch) | |
tree | 8e33bf623881a0471ff611f3176f603cc27efe7d /crypto/hash_info.c | |
parent | kmemleak: don't hang if user disables scanning early (diff) | |
download | linux-91fd8b95d656dcd3f0a4e17b6583e7b0220b0747.tar.xz linux-91fd8b95d656dcd3f0a4e17b6583e7b0220b0747.zip |
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>
Diffstat (limited to 'crypto/hash_info.c')
0 files changed, 0 insertions, 0 deletions