diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 17:49:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-14 17:49:54 -0400 |
commit | e18425a0abc8eafa8e98ecffac517bb0c0904f4b (patch) | |
tree | 5eb743e7201850de19496183554bb34c766948c4 /include/linux/sched.h | |
parent | d1794f2c5b5817eb79ccc5e00701ca748d1b073a (diff) | |
parent | 5806b81ac1c0c52665b91723fd4146a4f86e386b (diff) |
Merge branch 'tracing/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'tracing/for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (228 commits)
ftrace: build fix for ftraced_suspend
ftrace: separate out the function enabled variable
ftrace: add ftrace_kill_atomic
ftrace: use current CPU for function startup
ftrace: start wakeup tracing after setting function tracer
ftrace: check proper config for preempt type
ftrace: trace schedule
ftrace: define function trace nop
ftrace: move sched_switch enable after markers
ftrace: prevent ftrace modifications while being kprobe'd, v2
fix "ftrace: store mcount address in rec->ip"
mmiotrace broken in linux-next (8-bit writes only)
ftrace: avoid modifying kprobe'd records
ftrace: freeze kprobe'd records
kprobes: enable clean usage of get_kprobe
ftrace: store mcount address in rec->ip
ftrace: build fix with gcc 4.3
namespacecheck: fixes
ftrace: fix "notrace" filtering priority
ftrace: fix printout
...
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 |