From 267249123c6e97d8b3f13db1cf0f260f8244705a Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Wed, 14 Jan 2009 17:33:05 +0000 Subject: libcgrouptest: rename get_controller() to is_subsystem_enabled() From: Sudhir Kumar This patch renames the function get_controllers() to a more meaningful name is_subsystem_enabled(). history: The code in the patch is part of a patch sent in an earlier patchset, which somehow got dropped (looks an older version of that patch was merged to the tree). Adding this patch makes everything upstream upto the discussion held on the list. Signed-off-by: Sudhir Kumar Acked-by: Dhaval Giani Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@314 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/libcgrouptest01.c') 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"); -- cgit