From 87daf848c912e0e4b0482095ab0709ae049ef2ef Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 7 Feb 2005 05:31:22 -0800 Subject: [PATCH] add design comment to kick_process() Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- kernel/sched.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel') 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) { -- cgit v1.2.3