From: Wanlong Gao Date: Sat, 23 Jul 2011 17:37:01 +0000 (-0700) Subject: Documentation: fix echo command in cgroups/cpuacct.txt X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e47f9d84eec63484ae09f8c5b78ef605efa984a0;p=linux-beck.git Documentation: fix echo command in cgroups/cpuacct.txt Must echo a task id to the cgroups' tasks file, but not to a directory. Signed-off-by: Wanlong Gao Acked-by: Paul Menage Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt index 9ad85df4b983..9d73cc0cadb9 100644 --- a/Documentation/cgroups/cpuacct.txt +++ b/Documentation/cgroups/cpuacct.txt @@ -23,7 +23,7 @@ New accounting groups can be created under the parent group /sys/fs/cgroup. # cd /sys/fs/cgroup # mkdir g1 -# echo $$ > g1 +# echo $$ > g1/tasks The above steps create a new group g1 and move the current shell process (bash) into it. CPU time consumed by this bash and its children