Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1249764rdb; Wed, 24 Jan 2024 09:06:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3L36S1fF49FdUzDolvQvqVLmBEbwYDzKuE8zVXtBL8yPKZ3qZkCcWntXkvkb7cePykxjP X-Received: by 2002:a17:903:41d1:b0:1d7:91a1:ce26 with SMTP id u17-20020a17090341d100b001d791a1ce26mr572719ple.82.1706116016949; Wed, 24 Jan 2024 09:06:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706116016; cv=pass; d=google.com; s=arc-20160816; b=VeJVyRDsvTvuJIjvfeOhWNcHYA9KSRtTdeKQ+LgvY8ZaD8zEYbCrt6b2xFQ9dzOP4z Au3o/xRf8Qxe1R5lOsnk5U16MV3cJT6hTgv+chmwUTNBwHWCukn242So0glHhAvvDvNG dQxmRFsmmeTlLNSAuRUmVRwuyTWAWnnh5yvO1DPm7+YIH330rXyiGRY2ErJO6miArSMe jdUdOkM+w7HsYrXIBUZPdrcDZ2TirUiCBQlWU6kG8IIvINF5xr7ZBpHTBUqXRXnqS8kA EK8XPs+Efs5UO6+SqwCLaG5XS9kl7rBdLqlyvto4vjBuAhbjaEDLaBguCfXSmaYHFljA vzmQ== 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=Qz0puHhEd+YAhMNLcw60pRt9IPO9P02QNt6U2mEfI2g=; fh=9AYDxpIF3ws21qQDvjghHSFUuXpDdpq2Zh/SbnasVRo=; b=IEdWxue46Iu/QAzRAvzbp2l2pi/hVDWhRmh/uQjL31Ukkmo3njB+gwVDXpplIDYFUG vaa8uQMWFgHuHzGuHhvq1oa4qf+rOSeoeKce0fQJHOSEeo7onnylQ6WwgTjPWrj+5WML b6GxBxO4G+YnbGg32xpboDhUazAPK+1gPHvGJ9rKLd9qgWMem+DEWYu9p/Y5KnD0MR7Z EV1g7UhMw/WxrBkVQIR3UQk5WxKntjNihgMTsdppvQvsNJ8IHkIPulI60hnhxZGjXGE5 JPJ6a1jQzTW8EEf/UCV3iCMmDXfj5p30ee+hXq9iwfuKOvX5p+9j+23K5vDo72IX6gsA b2BQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CVw4YTMJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37385-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37385-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f7-20020a635547000000b005ce014d78a3si2128715pgm.366.2024.01.24.09.06.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 09:06:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37385-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CVw4YTMJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37385-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37385-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C87112861B6 for ; Wed, 24 Jan 2024 17:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 097517C087; Wed, 24 Jan 2024 17:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CVw4YTMJ" 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 395B286152 for ; Wed, 24 Jan 2024 17:05: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=1706115924; cv=none; b=GfuuP+5qxrfS+wwQy5xfeApEt5Z7WxmHtkp3ZaWQ0BSxIoyUeL8jdXZeBxxSY3biS/HtdjCz/8nDpHhbopeMWBO0DYjiBG7Al45dNPLLEUNyvewt58MABXmndmmen5Ff6gvKLTRF3gt5XKZromV/EPOJhCnBEibEJjiID07csFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706115924; c=relaxed/simple; bh=GdB05R0GsBmz9FGndTlKhr/I91b5e4z4ItUWDOBSGsM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jTlUINVpxTsGxpCi2DOAgeCj8CIvxIPWWFsjyEHz0ZC947X6rgA2mpNeuV2GMIUPhu+DfIdgeiP8hx0d3Rt+e1PkMa8rosvV5ijJ1C5roRjgcIOc7p9VecVy5qAsd1gVGokLeXC/uIWWR500J2pJbAmBmUv1b0l9CgP7/ALlwEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CVw4YTMJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46808C43394; Wed, 24 Jan 2024 17:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706115924; bh=GdB05R0GsBmz9FGndTlKhr/I91b5e4z4ItUWDOBSGsM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CVw4YTMJqW3je/Ce8E99eZlXXP+h6cjZcztkpnVmQmdffy4SHzim8AdAxwB2FRNia k9q1sFndfren1L9iuNRuj8j/8TUNDqj41uJgOkC+pwFPluy37N6iHxSH3X6wx9I1yx c15hgzyWIIJePPSV/89Lc5HvugTL1klwPWZ26ayhuVcSQ3RpeVCZYmbW4KZy0Qdxx0 uPA+0qH07tpRav03TSVifwofBjqCTglIKqNkj7mzo1iM/1slrXXcNqCx2S5jgU8MQ1 hrpe+hWJAMeAbH1Q+1rtCHIdZh3p9WB4BLRw9ikRxSaIKe7BkVCNzdAQ3+WgA2+Qdv Sw2NlLFaGXdRw== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Thomas Gleixner , Ingo Molnar , Anna-Maria Behnsen , Peng Liu , Joel Fernandes Subject: [PATCH 06/15] tick: No need to clear ts->next_tick again Date: Wed, 24 Jan 2024 18:04:50 +0100 Message-ID: <20240124170459.24850-7-frederic@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240124170459.24850-1-frederic@kernel.org> References: <20240124170459.24850-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The tick sched structure is already cleared from tick_cancel_sched_timer(), so there is no need to clear that field again. Signed-off-by: Frederic Weisbecker --- kernel/time/tick-sched.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 4089bd274d8e..e8e3b5d447e9 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1101,11 +1101,6 @@ static bool can_stop_idle_tick(int cpu, struct tick_sched *ts) if (unlikely(!cpu_online(cpu))) { if (cpu == tick_do_timer_cpu) tick_do_timer_cpu = TICK_DO_TIMER_NONE; - /* - * Make sure the CPU doesn't get fooled by obsolete tick - * deadline if it comes back online later. - */ - ts->next_tick = 0; return false; } -- 2.43.0