Commit a2c81f4f authored by Ingo Molnar's avatar Ingo Molnar

set_cpus_allowed() must not be called with spinlocks held.

parent 35e181a9
...@@ -1638,6 +1638,8 @@ typedef struct { ...@@ -1638,6 +1638,8 @@ typedef struct {
* *
* NOTE: the caller must have a valid reference to the task, the * NOTE: the caller must have a valid reference to the task, the
* task must not exit() & deallocate itself prematurely. * task must not exit() & deallocate itself prematurely.
*
* NOTE2: this function is not atomic.
*/ */
void set_cpus_allowed(task_t *p, unsigned long new_mask) void set_cpus_allowed(task_t *p, unsigned long new_mask)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment