All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun
@ 2018-11-07 11:10 Juri Lelli
  2018-11-07 14:17 ` Daniel Bristot de Oliveira
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Juri Lelli @ 2018-11-07 11:10 UTC (permalink / raw)
  To: peterz, mingo
  Cc: rostedt, tglx, linux-kernel, luca.abeni, claudio, bristot,
	linux-rt-users, mtk.manpages, Juri Lelli, Mathieu Poirier

check_dl_overrun is used to send a SIGXCPU to users that asked to be
informed when SCHED_DEADLINE runtime overruns occur.

The function is called by check_thread_timers already, so the call in
check_process_timers is redundant/wrong (even though harmless).

Remove it.

Fixes: 34be39305a77 ("sched/deadline: Implement "runtime overrun signal" support")
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Luca Abeni <luca.abeni@santannapisa.it>
Cc: Claudio Scordino <claudio@evidence.eu.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 kernel/time/posix-cpu-timers.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c
index ce32cf741b25..8f0644af40be 100644
--- a/kernel/time/posix-cpu-timers.c
+++ b/kernel/time/posix-cpu-timers.c
@@ -917,9 +917,6 @@ static void check_process_timers(struct task_struct *tsk,
 	struct task_cputime cputime;
 	unsigned long soft;
 
-	if (dl_task(tsk))
-		check_dl_overrun(tsk);
-
 	/*
 	 * If cputimer is not running, then there are no active
 	 * process wide timers (POSIX 1.b, itimers, RLIMIT_CPU).
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-08 10:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07 11:10 [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun Juri Lelli
2018-11-07 14:17 ` Daniel Bristot de Oliveira
2018-11-07 14:56 ` Steven Rostedt
2018-11-07 15:02   ` Peter Zijlstra
2018-11-07 16:31     ` Steven Rostedt
2018-11-08  6:45 ` [tip:timers/urgent] posix-cpu-timers: Remove useless call to check_dl_overrun() tip-bot for Juri Lelli
2018-11-08 10:58 ` [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun Claudio Scordino

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.