diff options
| author | Ingo Molnar <mingo@elte.hu> | 2005-02-07 05:31:22 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-02-07 05:31:22 -0800 |
| commit | 87daf848c912e0e4b0482095ab0709ae049ef2ef (patch) | |
| tree | a266788aad52c28805aa3eaa206f8cd70c44c88e /kernel | |
| parent | 01c8df0425061f81f99107ca63e4f0a981ec7f6a (diff) | |
[PATCH] add design comment to kick_process()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 911fbdd9c151..95042b27d30c 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -885,6 +885,12 @@ repeat: * * Cause a process which is running on another CPU to enter * kernel-mode, without any delay. (to get signals handled.) + * + * NOTE: this function doesnt have to take the runqueue lock, + * because all it wants to ensure is that the remote task enters + * the kernel. If the IPI races and the task has been migrated + * to another CPU then no harm is done and the purpose has been + * achieved as well. */ void kick_process(task_t *p) { |
