From patchwork Sun Feb 25 22:54:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 206133 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1770374dyb; Sun, 25 Feb 2024 14:56:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlFxSDN2IwZk/y4q5W4zeQFltSFib1xD/LpY/+2nNxvWFp4ZhzBEwBlJ5tfYBz7ZberDna9E6tIHrs5YfwCLeCd+lUoA== X-Google-Smtp-Source: AGHT+IHFjDd/Ifk9uOFiVKK3b5AApADjJGtX3f0kLqBoelfjpJPv80zwe+nqSsmOiosy4LxrIhxS X-Received: by 2002:a17:902:d4cb:b0:1dc:8b82:7f56 with SMTP id o11-20020a170902d4cb00b001dc8b827f56mr5606828plg.20.1708901793396; Sun, 25 Feb 2024 14:56:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708901793; cv=pass; d=google.com; s=arc-20160816; b=s5Fl9EjpK7n9F6VLmVBFVDICb7iAIjNsUy5E5lXX16/4Tnr8Hhv75DlbrEdlSMsfnz dY0X0vnhjvfJtv4z/6TX5JpkKluD01zxaDePfvrLI9phEK1ipd9XsKp41v/jdoBfJzMy LSdcwYv1IpczZahS0YjioN5IRgd502ponJabnZjhPGoQwuBiReYtnKQhzftTC6y3QDjX PyTL6Ffh7374xM8HV+1Hk9AMHG+0mdRir4f9/5pq1t9NfMWH2TSQV9kq1daiAzrdivPG SUD+6GX52NccdCE4hzvPl6DWT80gmVfMUK/wcoErSpnLGyefSX7AHo9QetMBa/De086k xmEg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=s026lBjpy8GRvcAWeAlp3WMFQiXWmm2HHylqzxIoa1A=; fh=9AYDxpIF3ws21qQDvjghHSFUuXpDdpq2Zh/SbnasVRo=; b=zGzN5MtWQwoq3hHjs7PbSC1sUq1UQ4IhDtEY018DlJG9I70AkLtpeSMxnltvvNVHAM XW/zsmR5JBYEpZiIpdRbrgKAXrUzrvH+YYyGnneA7bee4N5JzCos7bpeksSsN+VjYZFt eMbJ/hKbqPhCFsRtx3aXbjLskjFaWQmW177rSe8Sd8S1gMTv81RbgQJRCA1dZKs5kVUb VeFGmW+wi/DQ2/JTlSmkJadsMQy5RBn4cIHmY+qWZ9AqSS3zWpz/zILBhGiL7+2VDUsj efpRHPL3cv17Y0tXaWhjvyFBIWFwlF3Cno7BNcFF9xIwKkMCip4kimMoCVz4ITXnlPB0 VpPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rr7isJqi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80332-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80332-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j18-20020a170903025200b001d8a9162f22si2672645plh.60.2024.02.25.14.56.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 14:56:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80332-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rr7isJqi; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80332-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80332-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 39609281F65 for ; Sun, 25 Feb 2024 22:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AADB71F94C; Sun, 25 Feb 2024 22:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rr7isJqi" 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 16DA21CD1A for ; Sun, 25 Feb 2024 22:55:24 +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=1708901725; cv=none; b=VxEPXX6wNl46Neidqc2E0cwufMNgex61j7gLdBTBUEWXGBe7EyPUPrPTczGLAnkDz7mnViKDXogzl09cLXsbb8ybVlu1+OZ1QaXd1RuFYA8kyx2yUuTC7boMox4rvGQWdjF0V8xiJX6kFullJTVLDp3xiWKKBQfMxQRMJxPUocg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708901725; c=relaxed/simple; bh=IamgszwyZ3IggU9+C9+L0AHD8yJxSmoVUB5dySoZ5Bg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p4M2D3xpw0j5V+aiE1AMsLBbqdMxGaoHwVgeTjW0ICkl1KxI3tn4Hc6fJSpIiYZsAtKV37D+0pJITbO6hglQOrdpkWdltkPD2nKxlRaWDSAPV9l5yss7J9MZNCCnlLDRT+Yf1U69+j6LvGSOVBS1g7AV+Id+56AhWP6LKNUCLgk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rr7isJqi; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24A0AC433F1; Sun, 25 Feb 2024 22:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708901724; bh=IamgszwyZ3IggU9+C9+L0AHD8yJxSmoVUB5dySoZ5Bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rr7isJqiDhIDuwueOypOg8KMlIwexB8lFBwW6JDcheReDFJIAwiF9oMKhwR3hn5m4 6kjrKILkI8H8+slfeeQgWj3RXKnXHBMup23qMYJ/v7et58hB+WXGPnvGyXVgO3lAfg iVz6jjvFdasMsVUL4YTGL50zhFjP7auQKSNSkg3ny+BirlxSZyWg7iUFANKU+QTGco fPypIq2Cr6Lsiu59j1PXby4azbkRFhQR5QhDACyprCPu6bW98bun6Jbmpty5DBukLv 8fPUUr0qfcTQRUj1GjpgAvTfeOvWPHArfoRtiuDKYhxJGmVdzVJaAcpLiH/lz1Kfbt XnMVKHhbjo+qg== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Thomas Gleixner , Ingo Molnar , Anna-Maria Behnsen , Peng Liu , Joel Fernandes Subject: [PATCH 05/16] tick: s/tick_nohz_stop_sched_tick/tick_nohz_full_stop_tick Date: Sun, 25 Feb 2024 23:54:57 +0100 Message-ID: <20240225225508.11587-6-frederic@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240225225508.11587-1-frederic@kernel.org> References: <20240225225508.11587-1-frederic@kernel.org> 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: 1791913406917978685 X-GMAIL-MSGID: 1791913406917978685 tick_nohz_stop_sched_tick() is only about nohz_full and not about dynticks-idle. Reflect that in the function name to avoid confusion. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker --- kernel/time/tick-sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 4e34967edc0d..9f75f5621965 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1040,7 +1040,7 @@ static void tick_nohz_retain_tick(struct tick_sched *ts) } #ifdef CONFIG_NO_HZ_FULL -static void tick_nohz_stop_sched_tick(struct tick_sched *ts, int cpu) +static void tick_nohz_full_stop_tick(struct tick_sched *ts, int cpu) { if (tick_nohz_next_event(ts, cpu)) tick_nohz_stop_tick(ts, cpu); @@ -1075,7 +1075,7 @@ static void __tick_nohz_full_update_tick(struct tick_sched *ts, int cpu = smp_processor_id(); if (can_stop_full_tick(cpu, ts)) - tick_nohz_stop_sched_tick(ts, cpu); + tick_nohz_full_stop_tick(ts, cpu); else if (ts->tick_stopped) tick_nohz_restart_sched_tick(ts, now); #endif