|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 4/7] xen/sched: rtds: migrate to new sched_ops
Declare sched_rtds_def as a struct sched_ops instead of a struct
scheduler, dropping the .sched_data field, and register it with
REGISTER_SCHED_OPS() so it is found through sched_ops_array[]
instead of schedulers[].
This moves the rtds scheduler onto the new sched_ops
registration path.
Signed-off-by: Furkan Caliskan <frn1furkan10@xxxxxxxxx>
---
xen/common/sched/rt.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/xen/common/sched/rt.c b/xen/common/sched/rt.c
index 744f214173..8b4f05e2d1 100644
--- a/xen/common/sched/rt.c
+++ b/xen/common/sched/rt.c
@@ -1617,11 +1617,10 @@ static void cf_check repl_timer_handler(void *data)
spin_unlock_irq(&prv->lock);
}
-static const struct scheduler sched_rtds_def = {
+static const struct sched_ops sched_rtds_def = {
.name = "SMP RTDS Scheduler",
.opt_name = "rtds",
.sched_id = XEN_SCHEDULER_RTDS,
- .sched_data = NULL,
.dump_cpu_state = rt_dump_pcpu,
.dump_settings = rt_dump,
@@ -1646,4 +1645,4 @@ static const struct scheduler sched_rtds_def = {
.move_timers = rt_move_timers,
};
-REGISTER_SCHEDULER(sched_rtds_def);
+REGISTER_SCHED_OPS(sched_rtds_def);
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |