Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1005949rbb; Sun, 25 Feb 2024 14:55:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVtDO8Ev2Jog9lW34bPqQ2xW7K2nOsBdpTeU0re1/FxVrOnoNvbImE990lTDzMdJqk2Cq4Adpcx2e6PTZEsk7piD9UT6vPsatr0texvlg== X-Google-Smtp-Source: AGHT+IEnUoSPZGQERVbH1x2Oz09dhdPgNEvNkpsiiUXn1TiuFFuU/N6vH7oX4RwBFRIZWy0KM4mk X-Received: by 2002:a37:c207:0:b0:787:ad27:182 with SMTP id i7-20020a37c207000000b00787ad270182mr6372693qkm.50.1708901759241; Sun, 25 Feb 2024 14:55:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708901759; cv=pass; d=google.com; s=arc-20160816; b=HvWeYnfCrLqY+SFgHldJkSmRvphy3i5bgdYLYXBs8S4rP+2cT1RgcPlmvdAlCU/y8b OI1rAbv+ksNe+MU4NQrywlr4vq4yhdNIy9iy5HM27aGwh5qMlI3HcA6FbbAEKXHNxJDT XdYxJCm/qBmkT9lAcVojmN3/dKgVJpXXV2lgSlTsq6ee5vOEEGqIvGCfwBF2j911qoj3 IKV7dzhHM+rrZnZLVfqtHOyjn6bujDFgbxSEMnFyVu5QA2uO66P2UYkCZ8ReUXmm/GvA KMPNTRwf08VunXW057tYjJc0HHH5hZWeSgvgbqs9vXY2zaoIMcz12VSDr6xZmDcqCjWw RRkg== 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=vcR1WnYz0wmQlhW4q7UfXNCFmCQ/ghhN/ytUtcHmT24=; fh=9AYDxpIF3ws21qQDvjghHSFUuXpDdpq2Zh/SbnasVRo=; b=NRAg5wrjJR84t1iqB9DPom5dLHrinwWdIAbX0agOC8l0bhH8YiNYyrijw9MKshUmL/ P/SHKPOhviebGW4uvW0feC8VnkZscXMH+hAy/HgjSJSEKCswNBsuodKJs6Fz23qpcY1l vB93faEr7MKD+fMN4vKyoZdEGMbqSVb8P5b5YJy/hPx51LCo+NpadE6UCDJ+MBmXkF3W CRV7Pr0WrVYIaGQ373Jw4bBqGDUqC1F88jppvSwKurp4HQNCTPzL4XyqdIxSfL2EaOMa CtwxyZNcgfPg9IZMGsXd78AqRgP6urvlJt3vk7llObZaTAqu4sxVp41fq97tQd40Zbst kYTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rCDSSL8H; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wa17-20020a05620a4d1100b00787bd7195a1si3850535qkn.424.2024.02.25.14.55.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 14:55:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rCDSSL8H; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80330-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 03AE11C2042B for ; Sun, 25 Feb 2024 22:55:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEE3B1C6A6; Sun, 25 Feb 2024 22:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rCDSSL8H" 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 13F9A1C6A1 for ; Sun, 25 Feb 2024 22:55:20 +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=1708901721; cv=none; b=YvjkluOdOV8ozjyKobbStZtlg6/hw5jbkEPIg9x9dmOru6f/yU8Li6A+Hr5pqXdzFx8d9c4QP2sY6B3YPHKwDZRHKh1bM+X50jcpDDPQGi/dTnM27+KDB5HFrB9fXB8XP1YiWHc6G1ReDkDOxqKGVTNG/yKZCnmGIBa4bUPp+Mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708901721; c=relaxed/simple; bh=IqLfgv0CY7qkTUyv21aAmqS1ETFIUjP/QLPaIXsEnIQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Klc2vouo29CNsSOrSB6HhBEK9u6wZPgxy6b6zmf6kLkw/QykVkLPjBsaDb2iJIxE6NyYML1OMrg7NJ9tBcI07/B5/4VgaEd2FCO8iS6eDBkTGvsslNzwWEfz3K/9ccq9w52jvcjs+imW05I5wpFrvV7k+dYfDSWRNmi3vj02RtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rCDSSL8H; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0C70C433C7; Sun, 25 Feb 2024 22:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708901720; bh=IqLfgv0CY7qkTUyv21aAmqS1ETFIUjP/QLPaIXsEnIQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rCDSSL8HBySNRgVYrhvPX4oxo3P4sPwhiqjEW45X11zBnm+q17QNkPMPZc5Rkz9lO VM/0rZ8DjQeeWWKftNpl2Y5H3ZAA7OmasnfeKtvVcnifnodP3zWAhY3kq424is3Dt+ sXsHRXsjctSNIqLrr3vgfg0x2UafV3412HgMW30EieC6EfjNOs15mp28dEjTSxXl12 yPRouNzq89x5vIc2AlH3SeCS+DHgFuPsEXtgHxEoPnsLginZd9LpaPhreuubkyULbF FnUvxM3SoxQtkw8AtbjN/5LLLvK8FVew7XHwA6wbruExJm8TajJGJxqXTJ6okKkXFH iw3VAyoR49JqQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Thomas Gleixner , Ingo Molnar , Anna-Maria Behnsen , Peng Liu , Joel Fernandes Subject: [PATCH 03/16] tick: Remove useless oneshot ifdeffery Date: Sun, 25 Feb 2024 23:54:55 +0100 Message-ID: <20240225225508.11587-4-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 Content-Transfer-Encoding: 8bit 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. Reviewed-by: Thomas Gleixner Signed-off-by: Frederic Weisbecker --- 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 88c992f48126..27aaecb2e50c 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 -- 2.43.0