lkml.org 
[lkml]   [2002]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectduplicate declaration of rq in sched_init()
I found this one while trying to straighten out bootstrap ordering
issues elsewhere.

There appears to be a duplicate declaration of rq in sched_init().
This removes the nested declaration and otherwise leaves things alone.

Cheers,
Bill

===== kernel/sched.c 1.79 vs edited =====
--- 1.79/kernel/sched.c Wed May 29 08:26:26 2002
+++ edited/kernel/sched.c Sun Jun 2 14:38:24 2002
@@ -1591,9 +1591,9 @@
int i, j, k;

for (i = 0; i < NR_CPUS; i++) {
- runqueue_t *rq = cpu_rq(i);
prio_array_t *array;

+ rq = cpu_rq(i);
rq->active = rq->arrays;
rq->expired = rq->arrays + 1;
spin_lock_init(&rq->lock);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.041 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site