]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
thp: use khugepaged_enabled to remove duplicate code
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Mon, 8 Oct 2012 23:29:56 +0000 (16:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Oct 2012 07:22:28 +0000 (16:22 +0900)
commit17c230afa58a6d013a4949d5c04b823a281d40fa
tree1e65372823340b6acebb6b9be26a68ba430bcff0
parentb7231789b0224e73af4efc7973f8bcf17fc16edd
thp: use khugepaged_enabled to remove duplicate code

Use khugepaged_enabled to see whether thp is enabled

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c