Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2992652imu; Wed, 7 Nov 2018 03:11:47 -0800 (PST) X-Google-Smtp-Source: AJdET5cnc+Fg/YD1FWKKuO68OgK2gOXI4r8kZcI+d29TPYD6qGacenRKieLXP91dqnEKp14Z8w6f X-Received: by 2002:a63:cc43:: with SMTP id q3mr1140695pgi.291.1541589107666; Wed, 07 Nov 2018 03:11:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541589107; cv=none; d=google.com; s=arc-20160816; b=AcZ/vplqRwPP4oxuk/XpnGK7oe9n6jLP9SAJJ7jWhabcXnFZ59bDFRfHpOeQz06F+A 9tZeZpC2DdZisdRt5kwqz7ZrvGKpaNpOJcxmtYjUUbSJiesiwBDHdPJ0Ci084AUl9lJe qB0qgjCpGH2FJfe7eIw/7y3yv3Z9e2tjYCjq2pd20ji8M41uF6T1wElGbD2xlYESZ2RQ 0C4PbAD3XAQCblEQmmUC5YszzxpigXAt7R0uXEHJsp0yRFxl9JjfWxmCJxxOlL5HjmLc yyh2kTATGAVfyU02Jo/THF4RzHFCgAQszFCp9mw67NutAqrev4UEsD2XE2FyV4hTNh2c 5KUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=kaRsQefptxnEovWjsmZk9CySsZtoMQpnzCuREB9ux7k=; b=JiHaU+IPQusgzGezh86zzpJpfaeJEDd0m94iLFTlVP24kOyleiB64Mj8eVQ+dq0qAa CNlQ8Sn6j/Wk0me3x8phGOWO18xWOpS4U4z4QLkXX25aA9z3ap9RftnMCd4XpLD6BIXg OGpxggVkMxFMncCb12HSAsCGCeNXqXIThKYRJ3u40E/ogiou3/C7saxOlwJ2RbIHFcOd C19SJ9Fb+N9ZS+Ku2vEBdOeowT8AGjXpcmkE/pgmTRqo8e2zRS50ma/JWln+ICHNhc+u 3zuOlZsxbFu98ylKuKtawYBHpSXqhcJnxP9tQl1Sa4CSw+bk8CM7oxvS1qluGIdJ/gvi PCXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h65-v6si352467pfc.62.2018.11.07.03.11.30; Wed, 07 Nov 2018 03:11:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730569AbeKGUky (ORCPT + 99 others); Wed, 7 Nov 2018 15:40:54 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53267 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbeKGUky (ORCPT ); Wed, 7 Nov 2018 15:40:54 -0500 Received: by mail-wm1-f67.google.com with SMTP id f10-v6so1458226wme.3 for ; Wed, 07 Nov 2018 03:10:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kaRsQefptxnEovWjsmZk9CySsZtoMQpnzCuREB9ux7k=; b=fIxYCn3tcX+0xRq+8jjQSAD/VlRdCUJMnwdiRDJ57ktU8QLLKph7AFseENrs4ACLoW DgWF5THuO7QRFiHoS733/v7ILkgzAArVf8eePxq0b8zuXRYXT3QcrMykO+60/tDoKVbn OkrXvoOztJnuIVTRaoDbNoBc8JTvh+WimzzTxNWWAh/h/jrkyJ3YjlbFn65Mx1/F1hfW C9AVqlran4p2vtmx5jykfSAdFNRdA/1R9GHwlf+XhThoZgQpeJwyCMt5NB/9bKD8Q7jf nWnmu/MixQQu+4tYV/GIXS2/Np7Utyp6PoHhIo9O2f7QGsw9I7TnNWPUbOXhsvViJlDm qszA== X-Gm-Message-State: AGRZ1gITRpd1Zqmu1F+DjFAQ47tmvK0kkZT7aOjVhgtYAWInvpEiGLXB FmjQ+ZcmhiNOX2VZsNh+tR2OOw== X-Received: by 2002:a1c:4e18:: with SMTP id g24-v6mr1626079wmh.92.1541589058939; Wed, 07 Nov 2018 03:10:58 -0800 (PST) Received: from localhost.localdomain ([151.35.177.55]) by smtp.gmail.com with ESMTPSA id t14-v6sm381538wra.63.2018.11.07.03.10.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Nov 2018 03:10:58 -0800 (PST) From: Juri Lelli To: peterz@infradead.org, mingo@redhat.com Cc: rostedt@goodmis.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, bristot@redhat.com, linux-rt-users@vger.kernel.org, mtk.manpages@gmail.com, Juri Lelli , Mathieu Poirier Subject: [PATCH] kernel/time/posix-cpu-timers: Remove useless call to check_dl_overrun Date: Wed, 7 Nov 2018 12:10:32 +0100 Message-Id: <20181107111032.32291-1-juri.lelli@redhat.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Luca Abeni Cc: Claudio Scordino Cc: Mathieu Poirier --- 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