Message ID | 20240131231120.12006-7-frederic@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-47350-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp92792dyc; Wed, 31 Jan 2024 15:36:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlSUauDmPTUO/AbcKqT1xI+8ozzM6FGrv5susB6SCZI3+g/cZWpnk1QhRvzFOoNQIGkA5B X-Received: by 2002:a9d:75c1:0:b0:6e1:29f3:6fb9 with SMTP id c1-20020a9d75c1000000b006e129f36fb9mr3572982otl.21.1706744201129; Wed, 31 Jan 2024 15:36:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706744201; cv=pass; d=google.com; s=arc-20160816; b=mrN5gV8dpVXGOv7Sdr3h1IHQIFK9A8ySVNCvtpSMmHniiaehb2rxbNEl+1j9IfkeCP JKhOBEjTSABDEoPdim9gCPY31fM3d8tfrYbYyEKU5/ewBoK5fpSTY8D+CEKyVenP3j2H wQjGG/mJIcFUh2297KWCoY2+tEvzJ0E5ijAcPMBHWd1ABHktOSHy8Kc2QQlRg1eB5qRg f+QW80eU7S+MGc5gjcNC84cKEXloqcggplAEGwsWpkbuWOTAVELy82hxqdTIqc9SQGkw dPlZf0Hzf+SVuOTzAup8Uh0/zcvSpYuXkQM5co5rFs5bNJaJp5f0YRv/5SbOcXXfqP44 ZL8Q== 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=ziL4SAvQ/sgjxMhMMgc8ycsxfgWK0xY4iu+npqlkMSo=; fh=EW8bR3+X/VH/xW2CIvqUa4i5vOibANobvqFmWYTXOb4=; b=UQqGpIFAaS7GSQ49XH1lcXgMOBwndQs6ZI4orCpZpyd12ypFW6GsTSY9JI0iSBz56T CBVHQGuSquMZOc12Kdecb80fFSqCkaC7syvp1Lh7UE4n1WUSQl6AGqO7jRLeJbl/2Pm0 0DbaVgz3zLtGJmqFw2aSaJr+uM9N6v1Ij5/3cxCGx/tEXO4Ecg7Y1SgNfKwwnvgIb2dB zPNPE/L0aBPTVxfEmhA9huKhGKUa6dod+TMAJI1ShNkmwK/QwiJeW0C5B8mLhJxUjVkE +LAi5zp6vsRDPD9k+a1GYEUM658zQGEveXkASaZzSqL8bRbltcq7FPXyfQb3v16aqKYt VwHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ptQ5tTmA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47350-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47350-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCU551PrXHMyE9zTWfrCTBwmLbS+9P4xWxSQYgvuIVHVK0MPGw6Sv47oH6LNzBRE6pajk/ow33u0HAkYbFL95/0uiQeS2A== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h14-20020a65638e000000b005d8b5aace83si8666474pgv.289.2024.01.31.15.36.40 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 15:36:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47350-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=ptQ5tTmA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47350-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47350-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 50376294844 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 23:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9FB824D10A; Wed, 31 Jan 2024 23:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ptQ5tTmA" 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 0549D4BAB5 for <linux-kernel@vger.kernel.org>; Wed, 31 Jan 2024 23:11:39 +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=1706742700; cv=none; b=lKnvnCbWc0o0wCqWBbMuCyyXokpkxQ7WK7ENvDMM7ysCFU21YWrugMqVHwADJzAuYg6B8xBnr75/CEff6ImpEDh/zvJllf3tAo3XBbTJ++sO2R4xHssR591MrbkvUy+JWnR9dTogT+eppSKjUlcXUhfgYek//rvilmrlsPCGXpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706742700; c=relaxed/simple; bh=TdBitky7dKeAUk4dshu31PUBwwuT3BbUa7Yr8mFUDQs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TwWnW7NP4xFmAGIOGHI5qYW6w30VLdtsfTriVEKHC3oT8aIW6vJAaD0Q1s+zroso2jq2wjBziWNY9OPxnNvj975g4nzZzp6JdCZuBaQ0mdlFzyJfUKI96GsUkQO3TUSj2iPpm5X1LHbwwXJ9eqezc7ToMZ1LDJAVT9MAyr80gr8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ptQ5tTmA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1864C433F1; Wed, 31 Jan 2024 23:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706742699; bh=TdBitky7dKeAUk4dshu31PUBwwuT3BbUa7Yr8mFUDQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ptQ5tTmA0NWl7GDKMTOl4pZGyfrqVtXGeGeZa1F2Qwp7vxZFNqSQJRi144tZoa59B xPeSmj50BnbAyAFc0S4P3FzQw6JQqV+l/bH10lqVNSh6XBfeho36sk8Kj4vgT0lZey n4joxNoePbGmdvnB8oP7NCysCkX523xulBEg6doDg+ZTHGxWKhui70ovZ45pXc+ndN AeTqcYkHx0A9t+627Bdplw2QBTWuWSs+OWRhvLPEXuoN/ibv/vYatAJZiMdZlRCWp1 TSxfH3V+a79FWBsawBUBqhNt4K5yQmltxyam5ra0TTAkI8cmRbOaVGH+nIbT9W+VPM ecKXuEynHMQzw== From: Frederic Weisbecker <frederic@kernel.org> To: LKML <linux-kernel@vger.kernel.org> Cc: Frederic Weisbecker <frederic@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@kernel.org>, Anna-Maria Behnsen <anna-maria@linutronix.de>, Peng Liu <liupeng17@lenovo.com>, Joel Fernandes <joel@joelfernandes.org> Subject: [PATCH 06/15] tick: No need to clear ts->next_tick again Date: Thu, 1 Feb 2024 00:11:11 +0100 Message-ID: <20240131231120.12006-7-frederic@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240131231120.12006-1-frederic@kernel.org> References: <20240131231120.12006-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789651007018011095 X-GMAIL-MSGID: 1789651007018011095 |
Series |
timers/nohz cleanups and hotplug reorganization
|
|
Commit Message
Frederic Weisbecker
Jan. 31, 2024, 11:11 p.m. UTC
The tick sched structure is already cleared from tick_cancel_sched_timer(), so there is no need to clear that field again. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Frederic Weisbecker <frederic@kernel.org> --- 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 1fd7319b58b3..a07a04bb9d27 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1100,11 +1100,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; }