Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp312034pxf; Thu, 11 Mar 2021 04:38:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5FS9vmWTI6KhawoZoGMU1Xd3pIeXUm1POo7fpdwbNq57y/53upU9yDU1/4wE/bBB/TOdr X-Received: by 2002:a17:907:a04f:: with SMTP id gz15mr2858883ejc.293.1615466327649; Thu, 11 Mar 2021 04:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615466327; cv=none; d=google.com; s=arc-20160816; b=Yy4QAwIkmSJYqKhKjbO+F2ApLB97zcRAshYJwUCA0jaX4gg50oaAFe+n2oZGuRFEFE 8+KuSRX0FvHJgn/oo5djugPs42XKPnGEEUg6aEXpgqrCQCh5f39fYQvjZ/feVVsHeP0V ui848zmWXDpqh98y3cFXeSqRJY5JHPXZRiO3iTgYHNL5a+68sSDUE+TE2zUb8WC9Q5s8 5asz2QQ0oA5kspKY6sBg7m8uylXcEQA3MPtNlMGvF/WaHR82lLhG50lWfriUuLr+53EJ KQPYYLVPgNU8Y1l3UapNoayHOVOKDfVWGy9/iBeEiQz8ijq5tPaMTS6nX+bKsof//Tz+ cEuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rZKpiQm8s5SnZrG4s4VyUf6HmlQ2nE7H5OZmf7eRslM=; b=NgdzCFAOS7X6+xiRnZT7erj8RlFQe2yn9vt9FvM1RPjfnJ43Cdj8Q11FytKcXLzFzy +U2uImyyUFGG4Kyzglj28iAMB5EZ2Z6S5ht0dgylBOTgXZUudF6abX0tcDZYcXLjaIER d0ebWkaD0gCxM4eZ5TmADl7271zisdtXMUqMyWXMj6dcR7CktX3rJNhzsLwk5czWinBW RCrwnX8Ed/ndw2Z+xBheAqIgOIqvw9bMCFKFuyxOcbOEIuY7kLJIi4ZdN3qn1RnxUuaM UP1dKNPfRl0jezEKeaR1KVrMC+yN85PNDrq0C04SORREHkXxDp3tLWHcZsbBOcH8kzR6 l24Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHsyKJ46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj27si1662788ejb.513.2021.03.11.04.38.25; Thu, 11 Mar 2021 04:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHsyKJ46; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233036AbhCKMhb (ORCPT + 99 others); Thu, 11 Mar 2021 07:37:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:59666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233179AbhCKMhP (ORCPT ); Thu, 11 Mar 2021 07:37:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C69C64F8E; Thu, 11 Mar 2021 12:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615466234; bh=9RAEUsRaMheb+lyyBoNwvH8fiZ28fFkswXX/YYJj/Qc=; h=From:To:Cc:Subject:Date:From; b=SHsyKJ46coJNLN5KyTY3Av83EsbXqVCh0lxUoxFO+7a1PRE8WkvDK3wH/7kd+sElO zOBqWWBSZqWEO55Ah6wTpNBmi9HQUdMijF/oWkzJNUC8fdK0H7qdMZ6CpWIQdq9NWe NRh49p7iRJJqGXUDzSYPCN0GVSmt9or5pzPbPgqQzUK1YITprfFlpSmF0TUEbHivXa Oxigz38Hl/mILrm+aREvW7+CI6As1yTQ2ACJYGMtvLYzCPpUZKovNYsN1UfEJ+8eVq ANyA3eGPcJTgoxmQDRPTx1X0UNjFszjv/aK/fzpO0LkeZBbNXV2hm4JqK2zXL9/PKp Jb4BfgcTUB5pg== From: Frederic Weisbecker To: Peter Zijlstra , Thomas Gleixner Cc: LKML , Frederic Weisbecker , "Rafael J . Wysocki" , Ti Zhou , Yunfeng Ye , "Paul E . McKenney" , Marcelo Tosatti , Ingo Molnar Subject: [PATCH 00/10] tick/nohz updates Date: Thu, 11 Mar 2021 13:36:58 +0100 Message-Id: <20210311123708.23501-1-frederic@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Various updates for the timer/nohz side. * Two fixes (maybe 01/10 deserves a stable tag, I should check) * A Kconfig help change * A debug check while enqueuing timers when the tick is stopped in idle. * The rest is noise reduction for full nohz ("tick/nohz: Kick only _queued_ task whose tick dependency is updated"). It relies on the fact that p->on_rq is never set to anything else than TASK_ON_RQ_QUEUED while the task is running on a CPU, the only relevant exception being the task dequeuing itself on schedule(). I haven't found issues in my modest reviews of deactivate_task() callers but I lost my headlamp while visiting fair's sched entity dequeuing and throttling (had to find my way back in the dark again). So please double check the last patch. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/nohz HEAD: e469edfa00f97e5ec5d31fe31d3aef0a5c9bd607 Thanks, Frederic --- Frederic Weisbecker (5): tick/nohz: Add tick_nohz_full_this_cpu() tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE timer: Report ignored local enqueue in nohz mode tick/nohz: Update nohz_full Kconfig help tick/nohz: Only wakeup a single target cpu when kicking a task Marcelo Tosatti (2): tick/nohz: Change signal tick dependency to wakeup CPUs of member tasks tick/nohz: Kick only _queued_ task whose tick dependency is updated Yunfeng Ye (2): tick/nohz: Conditionally restart tick on idle exit tick/nohz: Update idle_exittime on actual idle exit Zhou Ti (x2019cwm) (1): tick/nohz: Prevent tick_nohz_get_sleep_length() from returning negative value include/linux/sched.h | 2 + include/linux/tick.h | 19 ++++-- kernel/sched/core.c | 25 +++++++- kernel/time/Kconfig | 11 ++-- kernel/time/posix-cpu-timers.c | 4 +- kernel/time/tick-sched.c | 134 +++++++++++++++++++++++++++++------------ 6 files changed, 142 insertions(+), 53 deletions(-)