@@ -99,17 +99,6 @@ struct scheduler_ops {
9999 */
100100 int (* schedule_task_running )(void * data , struct task * task );
101101
102- /**
103- * Sets task into completed state along with executing additional
104- * scheduler specific operations.
105- * @param data Private data of selected scheduler.
106- * @param task Task to be set into completed state.
107- * @return 0 if succeeded, error code otherwise.
108- *
109- * This operation is optional.
110- */
111- int (* schedule_task_complete )(void * data , struct task * task );
112-
113102 /**
114103 * Reschedules already scheduled task with new start time.
115104 * @param data Private data of selected scheduler.
@@ -221,28 +210,6 @@ static inline int schedule_task_running(struct task *task)
221210 return - ENODEV ;
222211}
223212
224- /** See scheduler_ops::schedule_task_complete */
225- static inline int schedule_task_complete (struct task * task )
226- {
227- struct schedulers * schedulers = * arch_schedulers_get ();
228- struct schedule_data * sch ;
229- struct list_item * slist ;
230-
231- list_for_item (slist , & schedulers -> list ) {
232- sch = container_of (slist , struct schedule_data , list );
233- if (task -> type == sch -> type ) {
234- /* optional operation */
235- if (!sch -> ops -> schedule_task_complete )
236- return 0 ;
237-
238- return sch -> ops -> schedule_task_complete (sch -> data ,
239- task );
240- }
241- }
242-
243- return - ENODEV ;
244- }
245-
246213/** See scheduler_ops::schedule_task */
247214static inline int schedule_task (struct task * task , uint64_t start ,
248215 uint64_t period )
0 commit comments