aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-07-18 05:17:17 -0400
committerIngo Molnar <mingo@kernel.org>2012-07-18 05:17:17 -0400
commita2fe194723f6e4990d01d8c208c7b138fd410522 (patch)
tree7aee93fa8f4ba1e18b56fa7d8eab75d249fc6966 /include/linux/sched.h
parentc3b7cdf180090d2686239a75bb0ae408108ed749 (diff)
parenta018540141a931f5299a866907b27886916b4374 (diff)
Merge branch 'linus' into perf/core
Pick up the latest ring-buffer fixes, before applying a new fix. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index c7cfa6996db4..64d9df5c3a49 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1870,22 +1870,12 @@ static inline void rcu_copy_process(struct task_struct *p)
1870 INIT_LIST_HEAD(&p->rcu_node_entry); 1870 INIT_LIST_HEAD(&p->rcu_node_entry);
1871} 1871}
1872 1872
1873static inline void rcu_switch_from(struct task_struct *prev)
1874{
1875 if (prev->rcu_read_lock_nesting != 0)
1876 rcu_preempt_note_context_switch();
1877}
1878
1879#else 1873#else
1880 1874
1881static inline void rcu_copy_process(struct task_struct *p) 1875static inline void rcu_copy_process(struct task_struct *p)
1882{ 1876{
1883} 1877}
1884 1878
1885static inline void rcu_switch_from(struct task_struct *prev)
1886{
1887}
1888
1889#endif 1879#endif
1890 1880
1891#ifdef CONFIG_SMP 1881#ifdef CONFIG_SMP
@@ -1908,6 +1898,14 @@ static inline int set_cpus_allowed_ptr(struct task_struct *p,
1908} 1898}
1909#endif 1899#endif
1910 1900
1901#ifdef CONFIG_NO_HZ
1902void calc_load_enter_idle(void);
1903void calc_load_exit_idle(void);
1904#else
1905static inline void calc_load_enter_idle(void) { }
1906static inline void calc_load_exit_idle(void) { }
1907#endif /* CONFIG_NO_HZ */
1908
1911#ifndef CONFIG_CPUMASK_OFFSTACK 1909#ifndef CONFIG_CPUMASK_OFFSTACK
1912static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask) 1910static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
1913{ 1911{