diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-14 10:11:52 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-14 10:11:52 -0400 |
commit | 5806b81ac1c0c52665b91723fd4146a4f86e386b (patch) | |
tree | 24ea8763bf308ce1407c1de91dc8de4d2655e1c1 /include/linux/sched.h | |
parent | d14c8a680ccfdeb5e7b9be4d61162c2b373bd1e8 (diff) | |
parent | 6712e299b7dc78aa4971b85e803435ee6d49a9dd (diff) |
Merge branch 'auto-ftrace-next' into tracing/for-linus
Conflicts:
arch/x86/kernel/entry_32.S
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/lib/Makefile
include/asm-x86/irqflags.h
kernel/Makefile
kernel/sched.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 16 |
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); | |||
245 | extern void init_idle(struct task_struct *idle, int cpu); | 245 | extern void init_idle(struct task_struct *idle, int cpu); |
246 | extern void init_idle_bootup_task(struct task_struct *idle); | 246 | extern void init_idle_bootup_task(struct task_struct *idle); |
247 | 247 | ||
248 | extern int runqueue_is_locked(void); | ||
249 | |||
248 | extern cpumask_t nohz_cpu_mask; | 250 | extern cpumask_t nohz_cpu_mask; |
249 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) | 251 | #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ) |
250 | extern int select_nohz_load_balancer(int cpu); | 252 | extern 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 | ||
2138 | extern void | ||
2139 | __trace_special(void *__tr, void *__data, | ||
2140 | unsigned long arg1, unsigned long arg2, unsigned long arg3); | ||
2141 | #else | ||
2142 | static inline void | ||
2143 | __trace_special(void *__tr, void *__data, | ||
2144 | unsigned long arg1, unsigned long arg2, unsigned long arg3) | ||
2145 | { | ||
2146 | } | ||
2147 | #endif | ||
2148 | |||
2135 | extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); | 2149 | extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); |
2136 | extern long sched_getaffinity(pid_t pid, cpumask_t *mask); | 2150 | extern 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 |