Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / kernel / vserver / sched_init.h
index d9b292d..6724c28 100644 (file)
@@ -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;