summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 70db597d6fd4..2c2e56bd8913 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1130,7 +1130,10 @@ struct task_struct {
1130 1130
1131 struct tlbflush_unmap_batch tlb_ubc; 1131 struct tlbflush_unmap_batch tlb_ubc;
1132 1132
1133 struct rcu_head rcu; 1133 union {
1134 refcount_t rcu_users;
1135 struct rcu_head rcu;
1136 };
1134 1137
1135 /* Cache last used pipe for splice(): */ 1138 /* Cache last used pipe for splice(): */
1136 struct pipe_inode_info *splice_pipe; 1139 struct pipe_inode_info *splice_pipe;
@@ -1839,7 +1842,10 @@ static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
1839 * running or not. 1842 * running or not.
1840 */ 1843 */
1841#ifndef vcpu_is_preempted 1844#ifndef vcpu_is_preempted
1842# define vcpu_is_preempted(cpu) false 1845static inline bool vcpu_is_preempted(int cpu)
1846{
1847 return false;
1848}
1843#endif 1849#endif
1844 1850
1845extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask); 1851extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);