Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1583790rbb; Mon, 26 Feb 2024 14:27:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQpI6vGYHP7S/zFR/iolodcdumLJeGRkjq26HeMUrfwF80SLpdpQrNAVJB5Pmmic4r+7ZRA99dqxNil4nKEOzdQOTJQa+mUJZ7yyi9Eg== X-Google-Smtp-Source: AGHT+IHhjlbXnW9dDT0CdolZPo7fLaGY0OGrRaGbmnVGWB/T6lDZNz2fB7CpOt0oIsP15kM5H4xg X-Received: by 2002:a17:903:1211:b0:1db:be98:e9a with SMTP id l17-20020a170903121100b001dbbe980e9amr10344183plh.26.1708986427907; Mon, 26 Feb 2024 14:27:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708986427; cv=pass; d=google.com; s=arc-20160816; b=KLFyUHmEXj/nzKJrNwabLMNIBYp0UTLMzCXyfQa+03Nil73gTC7DT+rPGDzqczjRNl 7zO980h6kRwlrpbPTbxtd2yzj/hwolkjYXKEiz15ZLaXQ4XdHRY6yysAE/WTBdlRR9ox Nru2XU8Z6kzGQwJz8o505bYO81x0R3xJHQUcK2lvLq1896jKA4rQkMS8Pja+FXZgr4RO I3LfGk8y1cTbSp4AGnRsEunLHWixhoX4I40ZgxxMxyqhX+sB8heO6ucgR13NH/I2nXpt 0xCzqzTkb6TcTzyHLwoMVJ7gZvt8n3EZXX0hLd4+whHy5ETcmBi0WG6v9en0BjoTtgZA LXpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=zZ/Ppx8rFJgGnaKx53zhV/2tDw3S6OfUiOeHkSIUMrs=; fh=9Ax9dUTktkw7GUAcxhp/hScrn1H6VeDItxi6qdujZxg=; b=xhKVOnM2CNK9Q0b6VzWjk6YPVCGIE2XN1Qqv4cyXj83M/xtkBo29gma8/xwQ2tvzC8 E9iCj8oxOD+iVDdS3oikIMCRD7Zka6GGDlQGTIDaX/TRi3KzDcNzOChvU91nDLhVsJ/W Mzfbe54WowlYNwNSiHm7i0y2ZCOewxdtzATlEMFIzOpZICbdlGoFjQJfBKvqcISZgWJB Gd/Xw2SGnm3s8P9W6a8J+k1vkrYeGQ6xYduQDKSgTho4urI8S+BsXPLhzjXXpqJDsBHa /uJKuGrDvq0k/bL9WLrvkvc21ohMgSbHKIeEcN0Plowqkpq16/sTcmvUR5H+oLEPIQnB jzVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="GY3k5r/3"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82399-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b10-20020a170903228a00b001dca5f9b4e4si280526plh.100.2024.02.26.14.27.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 14:27:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82399-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=@linutronix.de header.s=2020 header.b="GY3k5r/3"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82399-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 78727286EE3 for ; Mon, 26 Feb 2024 22:27:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03B29136647; Mon, 26 Feb 2024 22:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GY3k5r/3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YysOMXgS" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 A4627135404; Mon, 26 Feb 2024 22:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708986283; cv=none; b=TyCCbq/U32yLpaFfdkT91Pu2Ad1F/vlSKM7KKcoDSbxZFtCfj7fxt1Pejk4RMr3OEcXl9BAQWTZmEbs/2swQLsgY5vx7mQS2rPywqlxvV8sYd+/9Z0/GmkiT+5bq4w18xzxL2xs7HQo0B/nGOFlcvzxhlTYOJacJuvaW+P5mQAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708986283; c=relaxed/simple; bh=QkFejPWEqYV6eOO+NAnT2iBtClIY9XM3s7xMgT9Eza8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Kb8Mjrb/PRINxFxUl0Emr5GZ48qbkC58n0eo9pruu5YOZnDTsK4scJ/jBO5VcXZB1fDhUbK4m8/AhxXJ+w8eZopFZTJUHeeRAjIhoEugPAE5XjZz7R/1gxj+cu2RaIBa+YlDOPDNL4mBq9+aCwbCl3WECdrFuW7qiEWA20jy8uA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GY3k5r/3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YysOMXgS; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 26 Feb 2024 22:24:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708986280; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zZ/Ppx8rFJgGnaKx53zhV/2tDw3S6OfUiOeHkSIUMrs=; b=GY3k5r/33BWvXd2d5ZYTcbsL1v5xnfvxPIUiXja3Zw0S/ZF+683jry25Ugu1y6kZp4rq+L 4djASaZFZmQyOMeviHcbppziAz6/C81sc4QSbKI0Za0Q719PZO1NFGkfF7/3l2f9W9M6i+ njtGd9if6g/QEo8h1APuaupGv+qUqlHPDlgBCANRcAW7mKVQ0eKMw48Svy2ifhKSs/YeHV aFT3/vhMND05BOxgguUeFvrT/sTjEyd32yhYKDhLmV6ljjdgu1p4XG6UxiiRmVAfVhz2gA GL4tDkxziC/mWK/xisGo1j/iXaunHiPHdnvv5Xscn6LgmvvcZu2SpohO6XaEYg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708986280; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zZ/Ppx8rFJgGnaKx53zhV/2tDw3S6OfUiOeHkSIUMrs=; b=YysOMXgSlZHeF8EafYdMwqgMgdms70qyuMVklKGCMAFazxB6tSggdHH79MotitbzQgBd/n uUYJfMt4WDnlMrAA== From: "tip-bot2 for Frederic Weisbecker" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] tick/sched: Remove useless oneshot ifdeffery Cc: Frederic Weisbecker , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240225225508.11587-4-frederic@kernel.org> References: <20240225225508.11587-4-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170898627933.398.18187109270085232636.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: 3aedb7fcd88af25c215be098bf8ecb9ae8cb60ab Gitweb: https://git.kernel.org/tip/3aedb7fcd88af25c215be098bf8ecb9ae8cb60ab Author: Frederic Weisbecker AuthorDate: Sun, 25 Feb 2024 23:54:55 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 26 Feb 2024 11:37:31 +01:00 tick/sched: Remove useless oneshot ifdeffery tick-sched.c is only built when CONFIG_TICK_ONESHOT=y, which is selected only if CONFIG_NO_HZ_COMMON=y or CONFIG_HIGH_RES_TIMERS=y. Therefore the related ifdeferry in this file is needless and can be removed. Signed-off-by: Frederic Weisbecker Signed-off-by: Thomas Gleixner Reviewed-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240225225508.11587-4-frederic@kernel.org --- kernel/time/tick-sched.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 88c992f..27aaecb 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -43,7 +43,6 @@ struct tick_sched *tick_get_tick_sched(int cpu) return &per_cpu(tick_cpu_sched, cpu); } -#if defined(CONFIG_NO_HZ_COMMON) || defined(CONFIG_HIGH_RES_TIMERS) /* * The time when the last jiffy update happened. Write access must hold * jiffies_lock and jiffies_seq. tick_nohz_next_event() needs to get a @@ -289,7 +288,6 @@ static enum hrtimer_restart tick_nohz_handler(struct hrtimer *timer) return HRTIMER_RESTART; } -#endif #ifdef CONFIG_NO_HZ_FULL cpumask_var_t tick_nohz_full_mask; @@ -635,7 +633,7 @@ void __init tick_nohz_init(void) pr_info("NO_HZ: Full dynticks CPUs: %*pbl.\n", cpumask_pr_args(tick_nohz_full_mask)); } -#endif +#endif /* #ifdef CONFIG_NO_HZ_FULL */ /* * NOHZ - aka dynamic tick functionality @@ -1540,7 +1538,6 @@ void tick_irq_enter(void) tick_nohz_irq_enter(); } -#if defined CONFIG_NO_HZ_COMMON || defined CONFIG_HIGH_RES_TIMERS static int sched_skew_tick; static int __init skew_tick(char *str) @@ -1605,7 +1602,6 @@ void tick_cancel_sched_timer(int cpu) ts->idle_calls = idle_calls; ts->idle_sleeps = idle_sleeps; } -#endif /* CONFIG_NO_HZ_COMMON || CONFIG_HIGH_RES_TIMERS */ /* * Async notification about clocksource changes