]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thp: use khugepaged_enabled to remove duplicate code
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Thu, 13 Sep 2012 00:58:41 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 17 Sep 2012 10:45:52 +0000 (20:45 +1000)
commit4e16bacc3462f11b9478db5f11bbe2ec2656ca9e
tree2280e05d87092bb950ffaa1478e4865e34dea42a
parent1e8396cb0de5215d4409341238dad5d326d64d22
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>
mm/huge_memory.c