xen/common/schedule.c-
- void __init scheduler_init(void)
- {
- int i;
-
- open_softirq(SCHEDULE_SOFTIRQ, schedule);
-
- for_each_cpu ( i )
- {
- spin_lock_init(&per_cpu(schedule_data, i).schedule_lock);
- init_timer(&per_cpu(schedule_data, i).s_timer, s_timer_fn, NULL, i);
- }
-
- for ( i = 0; schedulers[i] != NULL; i++ )
- {
- ops = *schedulers[i];
- if ( strcmp(ops.opt_name, opt_sched) == 0 )
- break;
- }
-
- if ( schedulers[i] == NULL )
- printk("Could not find scheduler: %s\n", opt_sched);
-
- printk("Using scheduler: %s (%s)\n", ops.name, ops.opt_name);
- SCHED_OP(init);
- }
|