]> git.hungrycats.org Git - linux/commitdiff
set_cpus_allowed() must not be called with spinlocks held.
authorIngo Molnar <mingo@elte.hu>
Wed, 17 Apr 2002 09:29:11 +0000 (11:29 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Apr 2002 09:29:11 +0000 (11:29 +0200)
kernel/sched.c

index 3f29281172578c7867419242e1ae74c1cc8522bb..d9716a3ec8cd65828cb8a0fdd026a431abbca74b 100644 (file)
@@ -1638,6 +1638,8 @@ typedef struct {
  *
  * NOTE: the caller must have a valid reference to the task, the
  * task must not exit() & deallocate itself prematurely.
+ *
+ * NOTE2: this function is not atomic.
  */
 void set_cpus_allowed(task_t *p, unsigned long new_mask)
 {