diff options
Diffstat (limited to 'tests/libcgrouptest01.c')
-rw-r--r-- | tests/libcgrouptest01.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index a4a492d..d489d9c 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -73,8 +73,8 @@ int main(int argc, char *argv[]) /* * check if one of the supported controllers is cpu or memory */ - get_controllers("cpu", &cpu); - get_controllers("memory", &memory); + is_subsystem_enabled("cpu", &cpu); + is_subsystem_enabled("memory", &memory); if (cpu == 0 && memory == 0) { fprintf(stderr, "none of cpu and memory controllers" " is enabled in kernel\n"); |