aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4059c0f33f07..64d9df5c3a49 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1581,7 +1581,6 @@ struct task_struct {
1581#endif 1581#endif
1582#ifdef CONFIG_UPROBES 1582#ifdef CONFIG_UPROBES
1583 struct uprobe_task *utask; 1583 struct uprobe_task *utask;
1584 int uprobe_srcu_id;
1585#endif 1584#endif
1586}; 1585};
1587 1586
@@ -1871,22 +1870,12 @@ static inline void rcu_copy_process(struct task_struct *p)
1871 INIT_LIST_HEAD(&p->rcu_node_entry); 1870 INIT_LIST_HEAD(&p->rcu_node_entry);
1872} 1871}
1873 1872
1874static inline void rcu_switch_from(struct task_struct *prev)
1875{
1876 if (prev->rcu_read_lock_nesting != 0)
1877 rcu_preempt_note_context_switch();
1878}
1879
1880#else 1873#else
1881 1874
1882static inline void rcu_copy_process(struct task_struct *p) 1875static inline void rcu_copy_process(struct task_struct *p)
1883{ 1876{
1884} 1877}
1885 1878
1886static inline void rcu_switch_from(struct task_struct *prev)
1887{
1888}
1889
1890#endif 1879#endif
1891 1880
1892#ifdef CONFIG_SMP 1881#ifdef CONFIG_SMP
@@ -1909,6 +1898,14 @@ static inline int set_cpus_allowed_ptr(struct task_struct *p,
1909} 1898}
1910#endif 1899#endif
1911 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
1912#ifndef CONFIG_CPUMASK_OFFSTACK 1909#ifndef CONFIG_CPUMASK_OFFSTACK
1913static 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)
1914{ 1911{