Commit 2b227acb authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] duplicate decl 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.
parent 5e04fa0a
...@@ -1592,9 +1592,9 @@ void __init sched_init(void) ...@@ -1592,9 +1592,9 @@ void __init sched_init(void)
int i, j, k; int i, j, k;
for (i = 0; i < NR_CPUS; i++) { for (i = 0; i < NR_CPUS; i++) {
runqueue_t *rq = cpu_rq(i);
prio_array_t *array; prio_array_t *array;
rq = cpu_rq(i);
rq->active = rq->arrays; rq->active = rq->arrays;
rq->expired = rq->arrays + 1; rq->expired = rq->arrays + 1;
spin_lock_init(&rq->lock); spin_lock_init(&rq->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment