2 * Copyright IBM Corporation, 2012
3 * Author Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2.1 of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 #ifndef _LINUX_HUGETLB_CGROUP_H
16 #define _LINUX_HUGETLB_CGROUP_H
18 #include <linux/res_counter.h>
20 struct hugetlb_cgroup;
22 #ifdef CONFIG_CGROUP_HUGETLB
23 static inline bool hugetlb_cgroup_disabled(void)
25 if (hugetlb_subsys.disabled)
31 static inline bool hugetlb_cgroup_disabled(void)
36 #endif /* CONFIG_MEM_RES_CTLR_HUGETLB */