From fd6d753fc4e01f91427176ebfcced2c3d3f36c32 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 8 Feb 2011 17:33:44 -0500 Subject: 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. --- litmus/clustered.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, cpus[i]->cluster = cpus[low_cpu]->cluster; } /* enqueue in cpus list */ - list_add(&cpus[i]->cluster_list, &cpus[i]->cluster->cpus); + list_add_tail(&cpus[i]->cluster_list, &cpus[i]->cluster->cpus); printk(KERN_INFO "Assigning CPU%u to cluster %u\n.", i, cpus[i]->cluster->id); } out: -- cgit v1.2.2