]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/sched/deadline.c
sched/deadline: Remove dl_new from struct sched_dl_entity
authorLuca Abeni <luca.abeni@unitn.it>
Mon, 7 Mar 2016 11:27:04 +0000 (12:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Mar 2016 11:24:55 +0000 (12:24 +0100)
commit72f9f3fdc928dc3ecd223e801b32d930b662b6ed
treeb1ba77b3310973ef7f1d4827fd200f9542e445d3
parentca031745fdfc38fed0b9da89bd07e332fce96520
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>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/deadline.c