diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-05-04 10:00:16 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-05-04 10:00:16 -0400 |
commit | 3a20ac2c52b1317f5a5f0bd9cd3cbe8495ddd026 (patch) | |
tree | 9a912f2609cefb9698b5cce09cd240bd6dbd09fb /include/linux/init_task.h | |
parent | 18cc8d8d9b74c446832336d8f6e1afb145f9431b (diff) | |
parent | 3e5b50165fd0be080044586f43fcdd460ed27610 (diff) |
Merge branch 'fix/pcm-jiffies-check' into fix/asoc
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 2f3c2d4ef73b..d87247d2641f 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/irqflags.h> | 5 | #include <linux/irqflags.h> |
6 | #include <linux/utsname.h> | 6 | #include <linux/utsname.h> |
7 | #include <linux/lockdep.h> | 7 | #include <linux/lockdep.h> |
8 | #include <linux/ftrace.h> | ||
8 | #include <linux/ipc.h> | 9 | #include <linux/ipc.h> |
9 | #include <linux/pid_namespace.h> | 10 | #include <linux/pid_namespace.h> |
10 | #include <linux/user_namespace.h> | 11 | #include <linux/user_namespace.h> |
@@ -14,19 +15,6 @@ | |||
14 | extern struct files_struct init_files; | 15 | extern struct files_struct init_files; |
15 | extern struct fs_struct init_fs; | 16 | extern struct fs_struct init_fs; |
16 | 17 | ||
17 | #define INIT_KIOCTX(name, which_mm) \ | ||
18 | { \ | ||
19 | .users = ATOMIC_INIT(1), \ | ||
20 | .dead = 0, \ | ||
21 | .mm = &which_mm, \ | ||
22 | .user_id = 0, \ | ||
23 | .next = NULL, \ | ||
24 | .wait = __WAIT_QUEUE_HEAD_INITIALIZER(name.wait), \ | ||
25 | .ctx_lock = __SPIN_LOCK_UNLOCKED(name.ctx_lock), \ | ||
26 | .reqs_active = 0U, \ | ||
27 | .max_reqs = ~0U, \ | ||
28 | } | ||
29 | |||
30 | #define INIT_MM(name) \ | 18 | #define INIT_MM(name) \ |
31 | { \ | 19 | { \ |
32 | .mm_rb = RB_ROOT, \ | 20 | .mm_rb = RB_ROOT, \ |
@@ -48,6 +36,11 @@ extern struct fs_struct init_fs; | |||
48 | .posix_timers = LIST_HEAD_INIT(sig.posix_timers), \ | 36 | .posix_timers = LIST_HEAD_INIT(sig.posix_timers), \ |
49 | .cpu_timers = INIT_CPU_TIMERS(sig.cpu_timers), \ | 37 | .cpu_timers = INIT_CPU_TIMERS(sig.cpu_timers), \ |
50 | .rlim = INIT_RLIMITS, \ | 38 | .rlim = INIT_RLIMITS, \ |
39 | .cputimer = { \ | ||
40 | .cputime = INIT_CPUTIME, \ | ||
41 | .running = 0, \ | ||
42 | .lock = __SPIN_LOCK_UNLOCKED(sig.cputimer.lock), \ | ||
43 | }, \ | ||
51 | } | 44 | } |
52 | 45 | ||
53 | extern struct nsproxy init_nsproxy; | 46 | extern struct nsproxy init_nsproxy; |
@@ -142,6 +135,7 @@ extern struct cred init_cred; | |||
142 | .nr_cpus_allowed = NR_CPUS, \ | 135 | .nr_cpus_allowed = NR_CPUS, \ |
143 | }, \ | 136 | }, \ |
144 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ | 137 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ |
138 | .pushable_tasks = PLIST_NODE_INIT(tsk.pushable_tasks, MAX_PRIO), \ | ||
145 | .ptraced = LIST_HEAD_INIT(tsk.ptraced), \ | 139 | .ptraced = LIST_HEAD_INIT(tsk.ptraced), \ |
146 | .ptrace_entry = LIST_HEAD_INIT(tsk.ptrace_entry), \ | 140 | .ptrace_entry = LIST_HEAD_INIT(tsk.ptrace_entry), \ |
147 | .real_parent = &tsk, \ | 141 | .real_parent = &tsk, \ |
@@ -179,6 +173,7 @@ extern struct cred init_cred; | |||
179 | INIT_IDS \ | 173 | INIT_IDS \ |
180 | INIT_TRACE_IRQFLAGS \ | 174 | INIT_TRACE_IRQFLAGS \ |
181 | INIT_LOCKDEP \ | 175 | INIT_LOCKDEP \ |
176 | INIT_FTRACE_GRAPH \ | ||
182 | } | 177 | } |
183 | 178 | ||
184 | 179 | ||