2 static inline void vx_info_init_sched(struct _vx_sched *sched)
4 static struct lock_class_key tokens_lock_key;
7 /* scheduling; hard code starting values as constants */
10 sched->tokens_min = HZ >> 4;
11 sched->tokens_max = HZ >> 1;
12 sched->jiffies = jiffies;
13 sched->tokens_lock = SPIN_LOCK_UNLOCKED;
15 lockdep_set_class(&sched->tokens_lock, &tokens_lock_key);
17 atomic_set(&sched->tokens, HZ >> 2);
18 sched->cpus_allowed = CPU_MASK_ALL;
19 sched->priority_bias = 0;
22 for_each_possible_cpu(i) {
23 sched->cpu[i].user_ticks = 0;
24 sched->cpu[i].sys_ticks = 0;
25 sched->cpu[i].hold_ticks = 0;
29 static inline void vx_info_exit_sched(struct _vx_sched *sched)