aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-08 17:33:44 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-11-24 14:07:27 -0500
commitfd6d753fc4e01f91427176ebfcced2c3d3f36c32 (patch)
treeecb3bae3421d92e88eb2732188866fcee61a3ea5
parent2fec12d43b366b7257c602af784b172466d8d4c5 (diff)
bugfix: add processors in order of increasing indices to clusters
Pfair expects to look at processors in order of increasing index. Without this patch, Pfair could deadlock in certain situations.
-rw-r--r--litmus/clustered.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/clustered.c b/litmus/clustered.c
index 04450a8ad4fe..6fe1b512f628 100644
--- a/litmus/clustered.c
+++ b/litmus/clustered.c
@@ -102,7 +102,7 @@ int assign_cpus_to_clusters(enum cache_level level,
102 cpus[i]->cluster = cpus[low_cpu]->cluster; 102 cpus[i]->cluster = cpus[low_cpu]->cluster;
103 } 103 }
104 /* enqueue in cpus list */ 104 /* enqueue in cpus list */
105 list_add(&cpus[i]->cluster_list, &cpus[i]->cluster->cpus); 105 list_add_tail(&cpus[i]->cluster_list, &cpus[i]->cluster->cpus);
106 printk(KERN_INFO "Assigning CPU%u to cluster %u\n.", i, cpus[i]->cluster->id); 106 printk(KERN_INFO "Assigning CPU%u to cluster %u\n.", i, cpus[i]->cluster->id);
107 } 107 }
108out: 108out: