From 8e7dbdf187d6a6896873a32537fed62111a5910e Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 20 Jul 2010 14:30:57 +0200 Subject: 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 --- include/linux/sched.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3