summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx-2.6.35.3
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-03-15 21:53:19 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2012-03-16 03:00:48 +0000
commitd21799f1d38606339f709c754ffa58e53358dc2f (patch)
tree7bf87df449d01fe32c48bf2948e794f4dc8637be /recipes-kernel/linux/linux-imx-2.6.35.3
parent89b7ccbed9b4dbc65da7f08ccb8b7ed32426aa49 (diff)
downloadmeta-fsl-arm-d21799f1d38606339f709c754ffa58e53358dc2f.tar.gz
linux-imx-2.6.35.3: add patch for systemd
this patch was recommended by Koen to support recent systemd Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'recipes-kernel/linux/linux-imx-2.6.35.3')
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
new file mode 100644
index 0000000..55ec975
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
@@ -0,0 +1,58 @@
1From 64bc6f1bfac43096d0102be252392f31405273ec Mon Sep 17 00:00:00 2001
2From: Greg KH <gregkh@suse.de>
3Date: Thu, 5 Aug 2010 13:53:35 -0700
4Subject: [PATCH 2/2] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
5
6We really shouldn't be asking userspace to create new root filesystems.
7So follow along with all of the other in-kernel filesystems, and provide
8a mount point in sysfs.
9
10For cgroupfs, this should be in /sys/fs/cgroup/ This change provides
11that mount point when the cgroup filesystem is registered in the kernel.
12
13Acked-by: Paul Menage <menage@google.com>
14Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
15Cc: Li Zefan <lizf@cn.fujitsu.com>
16Cc: Lennart Poettering <lennart@poettering.net>
17Cc: Kay Sievers <kay.sievers@vrfy.org>
18Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19---
20 kernel/cgroup.c | 13 ++++++++++++-
21 1 files changed, 12 insertions(+), 1 deletions(-)
22
23diff --git a/kernel/cgroup.c b/kernel/cgroup.c
24index 7a14a97..cd81c18 100644
25--- a/kernel/cgroup.c
26+++ b/kernel/cgroup.c
27@@ -1621,6 +1621,8 @@ static struct file_system_type cgroup_fs_type = {
28 .kill_sb = cgroup_kill_sb,
29 };
30
31+static struct kobject *cgroup_kobj;
32+
33 static inline struct cgroup *__d_cgrp(struct dentry *dentry)
34 {
35 return dentry->d_fsdata;
36@@ -3885,9 +3887,18 @@ int __init cgroup_init(void)
37 hhead = css_set_hash(init_css_set.subsys);
38 hlist_add_head(&init_css_set.hlist, hhead);
39 BUG_ON(!init_root_id(&rootnode));
40+
41+ cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
42+ if (!cgroup_kobj) {
43+ err = -ENOMEM;
44+ goto out;
45+ }
46+
47 err = register_filesystem(&cgroup_fs_type);
48- if (err < 0)
49+ if (err < 0) {
50+ kobject_put(cgroup_kobj);
51 goto out;
52+ }
53
54 proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);
55
56--
571.6.6.1
58