summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuca Abeni <luca.abeni@unitn.it>2016-03-07 12:27:04 +0100
committerIngo Molnar <mingo@kernel.org>2016-03-08 12:24:55 +0100
commit72f9f3fdc928dc3ecd223e801b32d930b662b6ed (patch)
treeb1ba77b3310973ef7f1d4827fd200f9542e445d3 /include
parentca031745fdfc38fed0b9da89bd07e332fce96520 (diff)
downloadlinux-72f9f3fdc928dc3ecd223e801b32d930b662b6ed.tar.gz
linux-72f9f3fdc928dc3ecd223e801b32d930b662b6ed.tar.bz2
linux-72f9f3fdc928dc3ecd223e801b32d930b662b6ed.zip
sched/deadline: Remove dl_new from struct sched_dl_entity
The dl_new field of struct sched_dl_entity is currently used to identify new deadline tasks, so that their deadline and runtime can be properly initialised. However, these tasks can be easily identified by checking if their deadline is smaller than the current time when they switch to SCHED_DEADLINE. So, dl_new can be removed by introducing this check in switched_to_dl(); this allows to simplify the SCHED_DEADLINE code. Signed-off-by: Luca Abeni <luca.abeni@unitn.it> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1457350024-7825-2-git-send-email-luca.abeni@unitn.it Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9519b66fc21f..838a89a78332 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1333,10 +1333,6 @@ struct sched_dl_entity {
* task has to wait for a replenishment to be performed at the
* next firing of dl_timer.
*
- * @dl_new tells if a new instance arrived. If so we must
- * start executing it with full runtime and reset its absolute
- * deadline;
- *
* @dl_boosted tells if we are boosted due to DI. If so we are
* outside bandwidth enforcement mechanism (but only until we
* exit the critical section);
@@ -1344,7 +1340,7 @@ struct sched_dl_entity {
* @dl_yielded tells if task gave up the cpu before consuming
* all its available runtime during the last job.
*/
- int dl_throttled, dl_new, dl_boosted, dl_yielded;
+ int dl_throttled, dl_boosted, dl_yielded;
/*
* Bandwidth enforcement timer. Each -deadline task has its