diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-25 22:26:14 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-25 22:26:14 -0500 |
commit | 91e229bbad6524aabaac8717b2f559283670c37a (patch) | |
tree | 84a55e4ac2dcf23add97bd9fde3e9cb232c12b30 /kernel/sched.c | |
parent | 6e5e93424dc66542c548dfaa3bfebe30d46d50dd (diff) | |
parent | bfa274e2436fc7ef72ef51c878083647f1cfd429 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index f28f19e65b59..b387a8de26a5 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1831,6 +1831,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, int sync) | |||
1831 | long old_state; | 1831 | long old_state; |
1832 | struct rq *rq; | 1832 | struct rq *rq; |
1833 | 1833 | ||
1834 | smp_wmb(); | ||
1834 | rq = task_rq_lock(p, &flags); | 1835 | rq = task_rq_lock(p, &flags); |
1835 | old_state = p->state; | 1836 | old_state = p->state; |
1836 | if (!(old_state & state)) | 1837 | if (!(old_state & state)) |
@@ -3766,7 +3767,7 @@ void scheduler_tick(void) | |||
3766 | 3767 | ||
3767 | #if defined(CONFIG_PREEMPT) && defined(CONFIG_DEBUG_PREEMPT) | 3768 | #if defined(CONFIG_PREEMPT) && defined(CONFIG_DEBUG_PREEMPT) |
3768 | 3769 | ||
3769 | void add_preempt_count(int val) | 3770 | void __kprobes add_preempt_count(int val) |
3770 | { | 3771 | { |
3771 | /* | 3772 | /* |
3772 | * Underflow? | 3773 | * Underflow? |
@@ -3782,7 +3783,7 @@ void add_preempt_count(int val) | |||
3782 | } | 3783 | } |
3783 | EXPORT_SYMBOL(add_preempt_count); | 3784 | EXPORT_SYMBOL(add_preempt_count); |
3784 | 3785 | ||
3785 | void sub_preempt_count(int val) | 3786 | void __kprobes sub_preempt_count(int val) |
3786 | { | 3787 | { |
3787 | /* | 3788 | /* |
3788 | * Underflow? | 3789 | * Underflow? |