aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-10-03 04:13:45 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:03:40 -0400
commit1d32849b14bc8792e6f35ab27dd990d74b16126c (patch)
treecaba51ce9df60e42412119063e582023a534507e
parentad7a3bf30c27d902042bc85c3e54eb2082d633bd (diff)
[PATCH] pid.h cleanup
Make the pid.h macros look less revolting in an 80-col window. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/linux/pid.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/pid.h b/include/linux/pid.h
index 17b9e04d3586..2c0007d17218 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -105,28 +105,28 @@ static inline pid_t pid_nr(struct pid *pid)
105} 105}
106 106
107 107
108#define do_each_task_pid(who, type, task) \ 108#define do_each_task_pid(who, type, task) \
109 do { \ 109 do { \
110 struct hlist_node *pos___; \ 110 struct hlist_node *pos___; \
111 struct pid *pid___ = find_pid(who); \ 111 struct pid *pid___ = find_pid(who); \
112 if (pid___ != NULL) \ 112 if (pid___ != NULL) \
113 hlist_for_each_entry_rcu((task), pos___, \ 113 hlist_for_each_entry_rcu((task), pos___, \
114 &pid___->tasks[type], pids[type].node) { 114 &pid___->tasks[type], pids[type].node) {
115 115
116#define while_each_task_pid(who, type, task) \ 116#define while_each_task_pid(who, type, task) \
117 } \ 117 } \
118 } while (0) 118 } while (0)
119 119
120 120
121#define do_each_pid_task(pid, type, task) \ 121#define do_each_pid_task(pid, type, task) \
122 do { \ 122 do { \
123 struct hlist_node *pos___; \ 123 struct hlist_node *pos___; \
124 if (pid != NULL) \ 124 if (pid != NULL) \
125 hlist_for_each_entry_rcu((task), pos___, \ 125 hlist_for_each_entry_rcu((task), pos___, \
126 &pid->tasks[type], pids[type].node) { 126 &pid->tasks[type], pids[type].node) {
127 127
128#define while_each_pid_task(pid, type, task) \ 128#define while_each_pid_task(pid, type, task) \
129 } \ 129 } \
130 } while (0) 130 } while (0)
131 131
132#endif /* _LINUX_PID_H */ 132#endif /* _LINUX_PID_H */