aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMiao Xie <[email protected]>2008-07-21 14:21:35 -0700
committerLinus Torvalds <[email protected]>2008-07-22 09:59:41 -0700
commit91cd4d6ef0abb1f65e81f8fe37e7d3c10344e38c (patch)
tree48aa8cfd245839381d5b16ff8065abc96031a6c5 /kernel
parent1673ad52bd9a3c747e596a76e65c55981ea651e3 (diff)
cpusets: fix wrong domain attr updates
Fix wrong domain attr updates, or we will always update the first sched domain attr. Signed-off-by: Miao Xie <[email protected]> Cc: Hidetoshi Seto <[email protected]> Cc: Paul Jackson <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: <[email protected]> [2.6.26.x] Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 459d601947a8..d2cc67dac8b1 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -679,7 +679,9 @@ restart:
if (apn == b->pn) {
cpus_or(*dp, *dp, b->cpus_allowed);
b->pn = -1;
- update_domain_attr(dattr, b);
+ if (dattr)
+ update_domain_attr(dattr
+ + nslot, b);
}
}
nslot++;