Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42787
b: refs/heads/master
c: 6960406
h: refs/heads/master
i:
  42785: e769da0
  42783: ba7bbc3
v: v3
  • Loading branch information
Paul Jackson authored and Linus Torvalds committed Dec 7, 2006
1 parent ae01045 commit c640c6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ec68b2e310437e99c297ba04e1afc5297aa6de1
refs/heads/master: 696040670a12f66b17a839011f96d9ca376f688b
9 changes: 4 additions & 5 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,11 @@ static int validate_change(const struct cpuset *cur, const struct cpuset *trial)
}

/* Remaining checks don't apply to root cpuset */
if ((par = cur->parent) == NULL)
if (cur == &top_cpuset)
return 0;

par = cur->parent;

/* We must be a subset of our parent cpuset */
if (!is_cpuset_subset(trial, par))
return -EACCES;
Expand Down Expand Up @@ -1060,10 +1062,7 @@ static int update_flag(cpuset_flagbits_t bit, struct cpuset *cs, char *buf)
cpu_exclusive_changed =
(is_cpu_exclusive(cs) != is_cpu_exclusive(&trialcs));
mutex_lock(&callback_mutex);
if (turning_on)
set_bit(bit, &cs->flags);
else
clear_bit(bit, &cs->flags);
cs->flags = trialcs.flags;
mutex_unlock(&callback_mutex);

if (cpu_exclusive_changed)
Expand Down

0 comments on commit c640c6b

Please sign in to comment.