diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-07-20 14:30:57 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-07-20 19:11:56 +0200 |
commit | 8e7dbdf187d6a6896873a32537fed62111a5910e (patch) | |
tree | 0d104ad7adec643295e991328918e25fbedb5cf1 /include | |
parent | 5706af4a7052a5048f3e4a2cbc65ee66c71bdfa8 (diff) | |
download | lwn-8e7dbdf187d6a6896873a32537fed62111a5910e.tar.gz lwn-8e7dbdf187d6a6896873a32537fed62111a5910e.zip |
cpu-hotplug: Don't wake up the desched thread from idle_task_exit()
When idle tasks exits then we do not want to wake the cpu bound
desched thread.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 82d06e3ed04b..4610e2c769a3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2290,7 +2290,7 @@ extern struct mm_struct * mm_alloc(void); /* mmdrop drops the mm and the page tables */ extern void __mmdrop(struct mm_struct *); -extern void __mmdrop_delayed(struct mm_struct *); +extern void __mmdrop_delayed(struct mm_struct *, int wake); static inline void mmdrop(struct mm_struct * mm) { @@ -2298,10 +2298,10 @@ static inline void mmdrop(struct mm_struct * mm) __mmdrop(mm); } -static inline void mmdrop_delayed(struct mm_struct * mm) +static inline void mmdrop_delayed(struct mm_struct * mm, int wake) { if (atomic_dec_and_test(&mm->mm_count)) - __mmdrop_delayed(mm); + __mmdrop_delayed(mm, wake); } /* mmput gets rid of the mappings and all user-space */ |