aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c2
-rw-r--r--kernel/fork.c4
-rw-r--r--kernel/sched.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 452a1d116178..ee515683b92d 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -859,7 +859,7 @@ fastcall NORET_TYPE void do_exit(long code)
859 if (group_dead && tsk->signal->leader) 859 if (group_dead && tsk->signal->leader)
860 disassociate_ctty(1); 860 disassociate_ctty(1);
861 861
862 module_put(tsk->thread_info->exec_domain->module); 862 module_put(task_thread_info(tsk)->exec_domain->module);
863 if (tsk->binfmt) 863 if (tsk->binfmt)
864 module_put(tsk->binfmt->module); 864 module_put(tsk->binfmt->module);
865 865
diff --git a/kernel/fork.c b/kernel/fork.c
index 158710d22566..7ef352ce347b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -919,7 +919,7 @@ static task_t *copy_process(unsigned long clone_flags,
919 if (nr_threads >= max_threads) 919 if (nr_threads >= max_threads)
920 goto bad_fork_cleanup_count; 920 goto bad_fork_cleanup_count;
921 921
922 if (!try_module_get(p->thread_info->exec_domain->module)) 922 if (!try_module_get(task_thread_info(p)->exec_domain->module))
923 goto bad_fork_cleanup_count; 923 goto bad_fork_cleanup_count;
924 924
925 if (p->binfmt && !try_module_get(p->binfmt->module)) 925 if (p->binfmt && !try_module_get(p->binfmt->module))
@@ -1180,7 +1180,7 @@ bad_fork_cleanup:
1180 if (p->binfmt) 1180 if (p->binfmt)
1181 module_put(p->binfmt->module); 1181 module_put(p->binfmt->module);
1182bad_fork_cleanup_put_domain: 1182bad_fork_cleanup_put_domain:
1183 module_put(p->thread_info->exec_domain->module); 1183 module_put(task_thread_info(p)->exec_domain->module);
1184bad_fork_cleanup_count: 1184bad_fork_cleanup_count:
1185 put_group_info(p->group_info); 1185 put_group_info(p->group_info);
1186 atomic_dec(&p->user->processes); 1186 atomic_dec(&p->user->processes);
diff --git a/kernel/sched.c b/kernel/sched.c
index b6506671b2be..831f7e9d8f1c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1437,7 +1437,7 @@ void fastcall sched_fork(task_t *p, int clone_flags)
1437#endif 1437#endif
1438#ifdef CONFIG_PREEMPT 1438#ifdef CONFIG_PREEMPT
1439 /* Want to start with kernel preemption disabled. */ 1439 /* Want to start with kernel preemption disabled. */
1440 p->thread_info->preempt_count = 1; 1440 task_thread_info(p)->preempt_count = 1;
1441#endif 1441#endif
1442 /* 1442 /*
1443 * Share the timeslice between parent and child, thus the 1443 * Share the timeslice between parent and child, thus the
@@ -4410,9 +4410,9 @@ void __devinit init_idle(task_t *idle, int cpu)
4410 4410
4411 /* Set the preempt count _outside_ the spinlocks! */ 4411 /* Set the preempt count _outside_ the spinlocks! */
4412#if defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_BKL) 4412#if defined(CONFIG_PREEMPT) && !defined(CONFIG_PREEMPT_BKL)
4413 idle->thread_info->preempt_count = (idle->lock_depth >= 0); 4413 task_thread_info(idle)->preempt_count = (idle->lock_depth >= 0);
4414#else 4414#else
4415 idle->thread_info->preempt_count = 0; 4415 task_thread_info(idle)->preempt_count = 0;
4416#endif 4416#endif
4417} 4417}
4418 4418