]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blobdiff - rt-patches/0088-sched-Move-task_struct-cleanup-to-RCU.patch
rt_patches: required rebase due to printk change
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0088-sched-Move-task_struct-cleanup-to-RCU.patch
index 820ee3cd7a923fd7e5461f830276aa79a8bd12ee..37e8152b133102aa1cf31e49107dbef640164c9a 100644 (file)
@@ -1,7 +1,7 @@
-From a3d4f3b2dfafa2cd9e79fdf35ce8b2afef0fcd66 Mon Sep 17 00:00:00 2001
+From ed5cfee46c545224f3447a911eeaa2acadecbd5a Mon Sep 17 00:00:00 2001
 From: Thomas Gleixner <tglx@linutronix.de>
 Date: Tue, 31 May 2011 16:59:16 +0200
-Subject: [PATCH 088/365] sched: Move task_struct cleanup to RCU
+Subject: [PATCH 088/366] sched: Move task_struct cleanup to RCU
 
 __put_task_struct() does quite some expensive work. We don't want to
 burden random tasks with that.
@@ -13,7 +13,7 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  2 files changed, 27 insertions(+), 1 deletion(-)
 
 diff --git a/include/linux/sched.h b/include/linux/sched.h
-index 4228b42..8f75cbb 100644
+index 668b2cb..f75df33 100644
 --- a/include/linux/sched.h
 +++ b/include/linux/sched.h
 @@ -1843,6 +1843,9 @@ struct task_struct {
@@ -26,7 +26,7 @@ index 4228b42..8f75cbb 100644
  #ifdef CONFIG_DEBUG_ATOMIC_SLEEP
        unsigned long   task_state_change;
  #endif
-@@ -2052,6 +2055,15 @@ extern struct pid *cad_pid;
+@@ -2054,6 +2057,15 @@ extern struct pid *cad_pid;
  extern void free_task(struct task_struct *tsk);
  #define get_task_struct(tsk) do { atomic_inc(&(tsk)->usage); } while(0)
  
@@ -42,7 +42,7 @@ index 4228b42..8f75cbb 100644
  extern void __put_task_struct(struct task_struct *t);
  
  static inline void put_task_struct(struct task_struct *t)
-@@ -2059,6 +2071,7 @@ static inline void put_task_struct(struct task_struct *t)
+@@ -2061,6 +2073,7 @@ static inline void put_task_struct(struct task_struct *t)
        if (atomic_dec_and_test(&t->usage))
                __put_task_struct(t);
  }
@@ -51,7 +51,7 @@ index 4228b42..8f75cbb 100644
  #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
  extern void task_cputime(struct task_struct *t,
 diff --git a/kernel/fork.c b/kernel/fork.c
-index 06523cd..a94dde7 100644
+index 3256c9e..39cf90f 100644
 --- a/kernel/fork.c
 +++ b/kernel/fork.c
 @@ -244,7 +244,9 @@ static inline void put_signal_struct(struct signal_struct *sig)
@@ -85,5 +85,5 @@ index 06523cd..a94dde7 100644
  void __init __weak arch_task_cache_init(void) { }
  
 -- 
-2.7.4
+1.9.1