History

sched/deadline: Cleanup RT leftovers from {inc/dec}_dl_migration

In deadline class we do not have group scheduling. So, let's remove unnecessary X = X; equations.

Kirill Tkhai committed 12 years ago

Commit 3908ac11 parent 791c9e01 file · +0 −2Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sched/deadline.c+0−2
@@ -135,7 +135,6 @@ static void update_dl_migration(struct dl_rq *dl_rq) · 134 unmodified lines
135static void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)135static void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
136{136{
137 struct task_struct *p = dl_task_of(dl_se);137 struct task_struct *p = dl_task_of(dl_se);
138 dl_rq = &rq_of_dl_rq(dl_rq)->dl;
139 138
140 if (p->nr_cpus_allowed > 1)139 if (p->nr_cpus_allowed > 1)
141 dl_rq->dl_nr_migratory++;140 dl_rq->dl_nr_migratory++;
@@ -146,7 +145,6 @@ static void inc_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq) · 4 unmodified lines
146static void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)145static void dec_dl_migration(struct sched_dl_entity *dl_se, struct dl_rq *dl_rq)
147{146{
148 struct task_struct *p = dl_task_of(dl_se);147 struct task_struct *p = dl_task_of(dl_se);
149 dl_rq = &rq_of_dl_rq(dl_rq)->dl;
150 148
151 if (p->nr_cpus_allowed > 1)149 if (p->nr_cpus_allowed > 1)
152 dl_rq->dl_nr_migratory--;150 dl_rq->dl_nr_migratory--;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t