From patchwork Wed Jan 24 17:04:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 19406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1125574dyi; Wed, 24 Jan 2024 09:05:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtac+eyHnGNunT3FkQR7/8/jeBIv2PC7B1ISA/LUiA8JzflLImmqJpbEIykrskNn7fxOi6 X-Received: by 2002:a17:907:c247:b0:a30:e46f:3f2f with SMTP id tj7-20020a170907c24700b00a30e46f3f2fmr1648688ejc.0.1706115939184; Wed, 24 Jan 2024 09:05:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706115939; cv=pass; d=google.com; s=arc-20160816; b=Cx3MoL+dnp+CT5YTVr4qopKBSHEj1Z6l/QXMl1TDGlJsjS+bmaffzF8jxiJ5L9jm+9 njNUOV99j1NnYfo+wvZXIthbHeufalG8SOPwf0otbLbSNZrb0J1bbMgb6nV9Owc3pK4z SQaHR/rOg0ko9DchWzHsUWcLXQFbrOJJXcLxh81tzeswgkuAaH0KpXbPu46dsZReDplR W+yZm/6QQ/VOQipZKFEe3yso1EXkw+S9eIXPKWG6MA5/KeQijwbtVzF1uPgkALoR5Sl+ yA/ILq+2TcH7so+DPys/2RvlbwMqnvOLotO2RJjAnSKJcRo8v2b1fwiXtDnj8CH72E+8 Gu0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9c3L30GmO4B3jlFGDEccfzrK0jYvRbCG4popRNgtzUw=; fh=9AYDxpIF3ws21qQDvjghHSFUuXpDdpq2Zh/SbnasVRo=; b=CDG4eEiRQU96pIRvscFlDegnZxPGxD1Kmd9qCw8uVANZUcI7K3yeklADsxO+kKTQX8 2Nt3m9LpFcVcwQ3JaIgQOfqgyblUb60hNTBS8g3oXeAP85GN4ioXeHW4Kr9DByU1M6HS zwVUDPuXFPHPpGisqC3I291SqnOdGnYAjR4MvThsGZu+Gl6KhGUGhqbdQ1TCQ3ESU211 bpay5Mk4L0SOWAAHYrnxQ67kbmwcAX+gFIg+4mfJmqZCAtslG2XfiUvX2SNi/Jmu/aPb Vq2SG4yrrgUe3Y7ttjFY/SjymNpEN44FfcfLcSWSO9J+nYnG9WU7y/lnz0K4gWmoc7oZ UCjA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QGhzjmEw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37379-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37379-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o8-20020a17090637c800b00a31044e826fsi75003ejc.98.2024.01.24.09.05.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:05:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37379-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QGhzjmEw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37379-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37379-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C8A511F22419 for ; Wed, 24 Jan 2024 17:05:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FEA18003A; Wed, 24 Jan 2024 17:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QGhzjmEw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3B697E77D for ; Wed, 24 Jan 2024 17:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115909; cv=none; b=kgQvlJ5qJyHZ+kfyzo9fx5/89A/0d5koeAJnUBaCgFcibPod0wK/T83XZOrStu9v1jkPowlim9fdDRqSqrucGkoU5NakUC1m3Tq95pniRTlqvLv6PIwzCGnz3YWksf1hNxbRTjiWpCpn6V+0HgfTjlAAbS0nfpeb3j64ZUjqa6s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115909; c=relaxed/simple; bh=3QVdSsNIVHd+XBav0xMnzNX9FzcXdVijbP2sd6UI4JU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kfM3KP52f5Ut+uQJWcMMFsSJsBxWJFE6Q2//W8yVWjrukxi6X3PtAWRxZmH1Cz8D61Ddkt7/TTlNELeIGRAkqow44uFAvMntyTWhGgGOH8sF+TIlQZ21jl58Sdjfifs7DM+aKTpLJ1W/0FctXmZwLzWgq6/L3mSVF9+0UGxpJhE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QGhzjmEw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28B41C433F1; Wed, 24 Jan 2024 17:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706115909; bh=3QVdSsNIVHd+XBav0xMnzNX9FzcXdVijbP2sd6UI4JU=; h=From:To:Cc:Subject:Date:From; b=QGhzjmEwWVrlhGuHSAZC8ODXiRdA+FVI22xCDwKGT8RbetWLOU3fTVpibzJtTHEbu 13+mp0sRzQi9JJicOw6Y1mHYwMvI8/Dmy6RCCYGi2lYlb/AMJoTvinwhvKq0U1lev5 wZz9+8OxnGAWDloSirQhRprvoJk126oPM8cqm1bD7V0M1NBHNF6b1evuI0YcVLusMY 59Xhg0ysDQN9XdGMWJBhl5HVdl5e6fQfDG3FFDGKSl/roCAaYn/CUnyxxFCQpOiTZT rk7DOBdoNfDwDI4/bqgy3FeE37LjTPikujAcAn1KnWXYJhfGr3Dxtbs3uBsvqixqJz wMKnV+SG6FWrA== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Thomas Gleixner , Ingo Molnar , Anna-Maria Behnsen , Peng Liu , Joel Fernandes Subject: [PATCH 00/15] timers/nohz cleanups and hotplug reorganization Date: Wed, 24 Jan 2024 18:04:44 +0100 Message-ID: <20240124170459.24850-1-frederic@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788992226837321645 X-GMAIL-MSGID: 1788992226837321645 Hi, Here are some cleanups here and there and also some more rational tick related CPU hotplug code reorganization. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/hotplug HEAD: 378e195ce2fd96d90ed7c1cde9033cb7079a7274 Thanks, Frederic --- Frederic Weisbecker (13): tick: Remove useless oneshot ifdeffery tick: Use IS_ENABLED() whenever possible tick: s/tick_nohz_stop_sched_tick/tick_nohz_full_stop_tick tick: No need to clear ts->next_tick again tick: Start centralizing tick related CPU hotplug operations tick: Move tick cancellation up to CPUHP_AP_TICK_DYING tick: Move broadcast cancellation up to CPUHP_AP_TICK_DYING tick: Assume the tick can't be stopped in NOHZ_MODE_INACTIVE mode tick: Move got_idle_tick away from common flags tick: Move individual bit features to debuggable mask accesses tick: Split nohz and highres features from nohz_mode tick: Shut down low-res tick from dying CPU tick: Assume timekeeping is correctly handed over upon last offline idle call Peng Liu (2): tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer() tick/nohz: Remove duplicate between lowres and highres handlers include/linux/cpuhotplug.h | 1 + include/linux/tick.h | 16 +-- kernel/cpu.c | 11 +- kernel/sched/idle.c | 1 - kernel/time/hrtimer.c | 4 +- kernel/time/tick-common.c | 31 +++-- kernel/time/tick-internal.h | 2 + kernel/time/tick-sched.c | 296 ++++++++++++++++++++++---------------------- kernel/time/tick-sched.h | 40 +++--- kernel/time/timer_list.c | 10 +- 10 files changed, 213 insertions(+), 199 deletions(-)