X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=kernel%2Fvserver%2Fsched_init.h;h=6724c286f09e0782c246765e45296c3fafe66de7;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=d9b292d3612194a56857f8cedaaa686c3ff2974f;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/kernel/vserver/sched_init.h b/kernel/vserver/sched_init.h index d9b292d36..6724c286f 100644 --- a/kernel/vserver/sched_init.h +++ b/kernel/vserver/sched_init.h @@ -1,7 +1,6 @@ static inline void vx_info_init_sched(struct _vx_sched *sched) { - static struct lock_class_key tokens_lock_key; int i; /* scheduling; hard code starting values as constants */ @@ -20,14 +19,12 @@ static inline void vx_info_init_sched(struct _vx_sched *sched) } #endif - lockdep_set_class(&sched->tokens_lock, &tokens_lock_key); - atomic_set(&sched->tokens, HZ >> 2); sched->cpus_allowed = CPU_MASK_ALL; sched->priority_bias = 0; sched->vavavoom = 0; - for_each_possible_cpu(i) { + for_each_cpu(i) { sched->cpu[i].user_ticks = 0; sched->cpu[i].sys_ticks = 0; sched->cpu[i].hold_ticks = 0;