projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e914501
)
[IA64] use goto to jump out do/while_each_thread
author
Li Zefan
<lizf@cn.fujitsu.com>
Tue, 1 Apr 2008 04:29:34 +0000
(12:29 +0800)
committer
Tony Luck
<tony.luck@intel.com>
Wed, 9 Apr 2008 17:17:03 +0000
(10:17 -0700)
do_each_thread/while_each_thread is a double loop, so
should use 'goto' rather than 'break' to break out
the loop.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/perfmon.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kernel/perfmon.c
b/arch/ia64/kernel/perfmon.c
index a2aabfdc80d9ecaf4a8d1f4853956ca765e73f64..d1d24f4598da6ce98be2be0b40b7ffb436b30b45 100644
(file)
--- a/
arch/ia64/kernel/perfmon.c
+++ b/
arch/ia64/kernel/perfmon.c
@@
-4204,10
+4204,10
@@
pfm_check_task_exist(pfm_context_t *ctx)
do_each_thread (g, t) {
if (t->thread.pfm_context == ctx) {
ret = 0;
-
break
;
+
goto out
;
}
} while_each_thread (g, t);
-
+out:
read_unlock(&tasklist_lock);
DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx));
This page took
0.028341 seconds
and
5
git commands to generate.