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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f6cd60f2de63..5d1af10b90c3 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -245,6 +245,8 @@ extern asmlinkage void schedule_tail(struct task_struct *prev);
245extern void init_idle(struct task_struct *idle, int cpu); 245extern void init_idle(struct task_struct *idle, int cpu);
246extern void init_idle_bootup_task(struct task_struct *idle); 246extern void init_idle_bootup_task(struct task_struct *idle);
247 247
248extern int runqueue_is_locked(void);
249
248extern cpumask_t nohz_cpu_mask; 250extern cpumask_t nohz_cpu_mask;
249#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) 251#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ)
250extern int select_nohz_load_balancer(int cpu); 252extern int select_nohz_load_balancer(int cpu);
@@ -2132,6 +2134,18 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm)
2132} 2134}
2133#endif 2135#endif
2134 2136
2137#ifdef CONFIG_TRACING
2138extern void
2139__trace_special(void *__tr, void *__data,
2140 unsigned long arg1, unsigned long arg2, unsigned long arg3);
2141#else
2142static inline void
2143__trace_special(void *__tr, void *__data,
2144 unsigned long arg1, unsigned long arg2, unsigned long arg3)
2145{
2146}
2147#endif
2148
2135extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); 2149extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask);
2136extern long sched_getaffinity(pid_t pid, cpumask_t *mask); 2150extern long sched_getaffinity(pid_t pid, cpumask_t *mask);
2137 2151
@@ -2226,6 +2240,8 @@ static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
2226} 2240}
2227#endif /* CONFIG_MM_OWNER */ 2241#endif /* CONFIG_MM_OWNER */
2228 2242
2243#define TASK_STATE_TO_CHAR_STR "RSDTtZX"
2244
2229#endif /* __KERNEL__ */ 2245#endif /* __KERNEL__ */
2230 2246
2231#endif 2247#endif