Skip to content

Commit 4027d08

Browse files
xiaofeng.yanIngo Molnar
authored andcommitted
sched/rt: Fix 'struct sched_dl_entity' and dl_task_time() comments, to match the current upstream code
Signed-off-by: xiaofeng.yan <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 7aa2c01 commit 4027d08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/linux/sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,8 @@ struct sched_dl_entity {
11751175

11761176
/*
11771177
* Original scheduling parameters. Copied here from sched_attr
1178-
* during sched_setscheduler2(), they will remain the same until
1179-
* the next sched_setscheduler2().
1178+
* during sched_setattr(), they will remain the same until
1179+
* the next sched_setattr().
11801180
*/
11811181
u64 dl_runtime; /* maximum runtime for each instance */
11821182
u64 dl_deadline; /* relative deadline of each instance */

kernel/sched/deadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static enum hrtimer_restart dl_task_timer(struct hrtimer *timer)
520520
* We need to take care of a possible races here. In fact, the
521521
* task might have changed its scheduling policy to something
522522
* different from SCHED_DEADLINE or changed its reservation
523-
* parameters (through sched_setscheduler()).
523+
* parameters (through sched_setattr()).
524524
*/
525525
if (!dl_task(p) || dl_se->dl_new)
526526
goto unlock;

0 commit comments

Comments
 (0)