diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:25:46 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 11:25:46 -0400 |
| commit | 6124a4e430b64d1577438c8648c59e996d02e73e (patch) | |
| tree | 49cfafad785d1c9e403a5b0d755298b9af2c260f /kernel | |
| parent | 8e267f3da5f117d2f1316cf6ddf740f93f1c73aa (diff) | |
| parent | 580975d7f48d7d047e22bb0f42adf7557801d8d4 (diff) | |
Merge branch 'imx/dt' into next/dt
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/Makefile | 5 | ||||
| -rw-r--r-- | kernel/audit.c | 2 | ||||
| -rw-r--r-- | kernel/auditsc.c | 2 | ||||
| -rw-r--r-- | kernel/cgroup.c | 10 | ||||
| -rw-r--r-- | kernel/configs.c | 4 | ||||
| -rw-r--r-- | kernel/cpuset.c | 10 | ||||
| -rw-r--r-- | kernel/debug/debug_core.c | 2 | ||||
| -rw-r--r-- | kernel/exit.c | 3 | ||||
| -rw-r--r-- | kernel/fork.c | 88 | ||||
| -rw-r--r-- | kernel/futex.c | 4 | ||||
| -rw-r--r-- | kernel/gcov/Kconfig | 2 | ||||
| -rw-r--r-- | kernel/irq/devres.c | 2 | ||||
| -rw-r--r-- | kernel/kexec.c | 2 | ||||
| -rw-r--r-- | kernel/notifier.c | 31 | ||||
| -rw-r--r-- | kernel/panic.c | 2 | ||||
| -rw-r--r-- | kernel/pid.c | 1 | ||||
| -rw-r--r-- | kernel/power/Kconfig | 4 | ||||
| -rw-r--r-- | kernel/rcupdate.c | 2 | ||||
| -rw-r--r-- | kernel/rcutorture.c | 4 | ||||
| -rw-r--r-- | kernel/rcutree_trace.c | 2 | ||||
| -rw-r--r-- | kernel/rwsem.c | 2 | ||||
| -rw-r--r-- | kernel/sched.c | 1 | ||||
| -rw-r--r-- | kernel/stop_machine.c | 2 | ||||
| -rw-r--r-- | kernel/sys.c | 32 | ||||
| -rw-r--r-- | kernel/taskstats.c | 2 | ||||
| -rw-r--r-- | kernel/trace/trace.h | 2 | ||||
| -rw-r--r-- | kernel/trace/trace_mmiotrace.c | 2 |
27 files changed, 120 insertions, 105 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index 2d64cfcc8b42..d06467fc8f7c 100644 --- a/kernel/Makefile +++ b/kernel/Makefile | |||
| @@ -125,11 +125,10 @@ targets += config_data.gz | |||
| 125 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE | 125 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE |
| 126 | $(call if_changed,gzip) | 126 | $(call if_changed,gzip) |
| 127 | 127 | ||
| 128 | quiet_cmd_ikconfiggz = IKCFG $@ | 128 | filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") |
| 129 | cmd_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@ | ||
| 130 | targets += config_data.h | 129 | targets += config_data.h |
| 131 | $(obj)/config_data.h: $(obj)/config_data.gz FORCE | 130 | $(obj)/config_data.h: $(obj)/config_data.gz FORCE |
| 132 | $(call if_changed,ikconfiggz) | 131 | $(call filechk,ikconfiggz) |
| 133 | 132 | ||
| 134 | $(obj)/time.o: $(obj)/timeconst.h | 133 | $(obj)/time.o: $(obj)/timeconst.h |
| 135 | 134 | ||
diff --git a/kernel/audit.c b/kernel/audit.c index 52501b5d4902..0a1355ca3d79 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | 43 | ||
| 44 | #include <linux/init.h> | 44 | #include <linux/init.h> |
| 45 | #include <asm/types.h> | 45 | #include <asm/types.h> |
| 46 | #include <asm/atomic.h> | 46 | #include <linux/atomic.h> |
| 47 | #include <linux/mm.h> | 47 | #include <linux/mm.h> |
| 48 | #include <linux/module.h> | 48 | #include <linux/module.h> |
| 49 | #include <linux/slab.h> | 49 | #include <linux/slab.h> |
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 00d79df03e76..ce4b054acee5 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | 44 | ||
| 45 | #include <linux/init.h> | 45 | #include <linux/init.h> |
| 46 | #include <asm/types.h> | 46 | #include <asm/types.h> |
| 47 | #include <asm/atomic.h> | 47 | #include <linux/atomic.h> |
| 48 | #include <linux/fs.h> | 48 | #include <linux/fs.h> |
| 49 | #include <linux/namei.h> | 49 | #include <linux/namei.h> |
| 50 | #include <linux/mm.h> | 50 | #include <linux/mm.h> |
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index e1c72c0f512b..984458035d4a 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
| @@ -59,7 +59,7 @@ | |||
| 59 | #include <linux/poll.h> | 59 | #include <linux/poll.h> |
| 60 | #include <linux/flex_array.h> /* used in cgroup_attach_proc */ | 60 | #include <linux/flex_array.h> /* used in cgroup_attach_proc */ |
| 61 | 61 | ||
| 62 | #include <asm/atomic.h> | 62 | #include <linux/atomic.h> |
| 63 | 63 | ||
| 64 | static DEFINE_MUTEX(cgroup_mutex); | 64 | static DEFINE_MUTEX(cgroup_mutex); |
| 65 | 65 | ||
| @@ -1697,7 +1697,6 @@ int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen) | |||
| 1697 | { | 1697 | { |
| 1698 | char *start; | 1698 | char *start; |
| 1699 | struct dentry *dentry = rcu_dereference_check(cgrp->dentry, | 1699 | struct dentry *dentry = rcu_dereference_check(cgrp->dentry, |
| 1700 | rcu_read_lock_held() || | ||
| 1701 | cgroup_lock_is_held()); | 1700 | cgroup_lock_is_held()); |
| 1702 | 1701 | ||
| 1703 | if (!dentry || cgrp == dummytop) { | 1702 | if (!dentry || cgrp == dummytop) { |
| @@ -1723,7 +1722,6 @@ int cgroup_path(const struct cgroup *cgrp, char *buf, int buflen) | |||
| 1723 | break; | 1722 | break; |
| 1724 | 1723 | ||
| 1725 | dentry = rcu_dereference_check(cgrp->dentry, | 1724 | dentry = rcu_dereference_check(cgrp->dentry, |
| 1726 | rcu_read_lock_held() || | ||
| 1727 | cgroup_lock_is_held()); | 1725 | cgroup_lock_is_held()); |
| 1728 | if (!cgrp->parent) | 1726 | if (!cgrp->parent) |
| 1729 | continue; | 1727 | continue; |
| @@ -4814,8 +4812,7 @@ unsigned short css_id(struct cgroup_subsys_state *css) | |||
| 4814 | * on this or this is under rcu_read_lock(). Once css->id is allocated, | 4812 | * on this or this is under rcu_read_lock(). Once css->id is allocated, |
| 4815 | * it's unchanged until freed. | 4813 | * it's unchanged until freed. |
| 4816 | */ | 4814 | */ |
| 4817 | cssid = rcu_dereference_check(css->id, | 4815 | cssid = rcu_dereference_check(css->id, atomic_read(&css->refcnt)); |
| 4818 | rcu_read_lock_held() || atomic_read(&css->refcnt)); | ||
| 4819 | 4816 | ||
| 4820 | if (cssid) | 4817 | if (cssid) |
| 4821 | return cssid->id; | 4818 | return cssid->id; |
| @@ -4827,8 +4824,7 @@ unsigned short css_depth(struct cgroup_subsys_state *css) | |||
| 4827 | { | 4824 | { |
| 4828 | struct css_id *cssid; | 4825 | struct css_id *cssid; |
| 4829 | 4826 | ||
| 4830 | cssid = rcu_dereference_check(css->id, | 4827 | cssid = rcu_dereference_check(css->id, atomic_read(&css->refcnt)); |
| 4831 | rcu_read_lock_held() || atomic_read(&css->refcnt)); | ||
| 4832 | 4828 | ||
| 4833 | if (cssid) | 4829 | if (cssid) |
| 4834 | return cssid->depth; | 4830 | return cssid->depth; |
diff --git a/kernel/configs.c b/kernel/configs.c index b4066b44a99d..42e8fa075eed 100644 --- a/kernel/configs.c +++ b/kernel/configs.c | |||
| @@ -92,8 +92,8 @@ static void __exit ikconfig_cleanup(void) | |||
| 92 | module_init(ikconfig_init); | 92 | module_init(ikconfig_init); |
| 93 | module_exit(ikconfig_cleanup); | 93 | module_exit(ikconfig_cleanup); |
| 94 | 94 | ||
| 95 | #endif /* CONFIG_IKCONFIG_PROC */ | ||
| 96 | |||
| 95 | MODULE_LICENSE("GPL"); | 97 | MODULE_LICENSE("GPL"); |
| 96 | MODULE_AUTHOR("Randy Dunlap"); | 98 | MODULE_AUTHOR("Randy Dunlap"); |
| 97 | MODULE_DESCRIPTION("Echo the kernel .config file used to build the kernel"); | 99 | MODULE_DESCRIPTION("Echo the kernel .config file used to build the kernel"); |
| 98 | |||
| 99 | #endif /* CONFIG_IKCONFIG_PROC */ | ||
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 9c9b7545c810..10131fdaff70 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | #include <linux/sort.h> | 55 | #include <linux/sort.h> |
| 56 | 56 | ||
| 57 | #include <asm/uaccess.h> | 57 | #include <asm/uaccess.h> |
| 58 | #include <asm/atomic.h> | 58 | #include <linux/atomic.h> |
| 59 | #include <linux/mutex.h> | 59 | #include <linux/mutex.h> |
| 60 | #include <linux/workqueue.h> | 60 | #include <linux/workqueue.h> |
| 61 | #include <linux/cgroup.h> | 61 | #include <linux/cgroup.h> |
| @@ -2460,11 +2460,19 @@ static int cpuset_spread_node(int *rotor) | |||
| 2460 | 2460 | ||
| 2461 | int cpuset_mem_spread_node(void) | 2461 | int cpuset_mem_spread_node(void) |
| 2462 | { | 2462 | { |
| 2463 | if (current->cpuset_mem_spread_rotor == NUMA_NO_NODE) | ||
| 2464 | current->cpuset_mem_spread_rotor = | ||
| 2465 | node_random(¤t->mems_allowed); | ||
| 2466 | |||
| 2463 | return cpuset_spread_node(¤t->cpuset_mem_spread_rotor); | 2467 | return cpuset_spread_node(¤t->cpuset_mem_spread_rotor); |
| 2464 | } | 2468 | } |
| 2465 | 2469 | ||
| 2466 | int cpuset_slab_spread_node(void) | 2470 | int cpuset_slab_spread_node(void) |
| 2467 | { | 2471 | { |
| 2472 | if (current->cpuset_slab_spread_rotor == NUMA_NO_NODE) | ||
| 2473 | current->cpuset_slab_spread_rotor = | ||
| 2474 | node_random(¤t->mems_allowed); | ||
| 2475 | |||
| 2468 | return cpuset_spread_node(¤t->cpuset_slab_spread_rotor); | 2476 | return cpuset_spread_node(¤t->cpuset_slab_spread_rotor); |
| 2469 | } | 2477 | } |
| 2470 | 2478 | ||
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index bad6786dee88..0d7c08784efb 100644 --- a/kernel/debug/debug_core.c +++ b/kernel/debug/debug_core.c | |||
| @@ -51,7 +51,7 @@ | |||
| 51 | 51 | ||
