Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1266992rdb; Wed, 24 Jan 2024 09:36:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUILWUG1Kjomp8Ou8Edvnd13kPELV0Vcq2EZs5sL8r80vouWwJOhiuytnxD8yaOFFssKTe X-Received: by 2002:a17:902:c212:b0:1d6:9bad:ff88 with SMTP id 18-20020a170902c21200b001d69badff88mr898598pll.110.1706117786349; Wed, 24 Jan 2024 09:36:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706117786; cv=pass; d=google.com; s=arc-20160816; b=t7WE2igOCH/D9mQqK+38B6n0eCjnzOnziqsH426cP2y4cTd5TI1zgDErkD6AfDMSLh lx1mfp7bsaz3/f0/SXiEP4Ogt1KQwku8udjDn82alpGkG3NKt1Czjn85OTQM+oWoRXbJ v29Pu7CTOC0pQEQcIfLoR64FrRpgreH28Dhli8Nac/4uxl9q70v6pAJv8I28cPpYlOjL uXUxkQTSvKog0LK9J5HuMJjNssHSeLZ/V8IiHaPnrZWzW7rFOyGs0mrbLT96dSfVA4QP BV3VDPQIemMhafZ+KEwS0NAwDJ0SPd/utSLZURX5dDVX8ZWfSUGgos5dt5kSWUj4WS65 7GFA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37379-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k26-20020aa7999a000000b006dd9f7e01c2si1312712pfh.38.2024.01.24.09.36.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:36:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37379-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E493BB291DA for ; Wed, 24 Jan 2024 17:05:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 800E67E78A; Wed, 24 Jan 2024 17:05:10 +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 Content-Transfer-Encoding: 8bit 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(-)