]> 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>
Wed, 19 Sep 2012 05:30:04 +0000 (15:30 +1000)
commitfa775522c7879efa3b7167253fd25cda5c1de0cb
tree61869205cab526ae507a1e3e063ae5004d842c77
parentf9fc8b6ff9383ccfc7a0e7e4b4ad21faf82be3c6
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