Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp312372pxf; Thu, 11 Mar 2021 04:39:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyZRApDxQnNzNFx7enozSgfe3vT5LtMZQqwnTHNbdhMAyhOA111U+xKtw5ERcXCmEa2Bqv X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr8034388edb.242.1615466359568; Thu, 11 Mar 2021 04:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615466359; cv=none; d=google.com; s=arc-20160816; b=xmTifPROQ0spYIidTN2oW182wxcuwX/9Rl8HuzZXWlEjyEfIJNamz8PdcycdT7eN22 19ClpZ4r1zmYCjpRkBgsOPNC9IeRr3eE+q3JejNayRG9UEK9jKSh8kA1k7biGxufPtY3 FQaCEF3aX3WFSOyHbK/9blbVcpzCN1d5RitvJn/cTAkoxWY7muWGFqA3u5ePuXCiGc+E VNFXFLZA8360Ji5MRWrVixpb8HzMRKj0d/uASLibOhvFCgCPz6ZGmap7bBGoYMEYna2T ZbEXfz1kzu7YnbV9tG/aw1qSt3JFN9Y1lYK83UrOkGIyFGOdHgROQZs0tnqmwtv/+pfO 24zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kohUAQL6Jd9fSBcF6tRFxSITph3Bl1cKGe+qKliogUU=; b=xI0vyx6kYgZTXc2l1KaOEZTu1LyCzHRls4SbBaKJB4rgTi5ZXRZ5KpUmqvE5Q0PHfH rnNY0TtVyefbIccyV469J7solXkK1Yhd1/h88uw5cWPDxLuguiK20DW8qwVU6NJ4YuH+ 8XyQ0EdeGReQD5xau8T8LGZh1U8mDS6OoqadrqWekza9l0+ApxXIUhsC9t06Og9zvuIq WmSLBzgyM3mGs9yK2GqdbFqNHb0ei0QZHsF/A1w0FqqumsPfL01BnCPuxcbPXstV4dPp v499VprLqsp/8FYhAR1qvpYJhNpuJs9rl2GjUQtABNJBgKWCspdbiMdRGG03RFCTswLo g25g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lygqAWrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1617196ejg.405.2021.03.11.04.38.56; Thu, 11 Mar 2021 04:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lygqAWrs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233355AbhCKMhj (ORCPT + 99 others); Thu, 11 Mar 2021 07:37:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:59820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbhCKMh0 (ORCPT ); Thu, 11 Mar 2021 07:37:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 71F9764FE6; Thu, 11 Mar 2021 12:37:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615466245; bh=xoDQhYeHDbYrvOHhbPLwzFOvTOQNU8e/De6Dq0M4ByQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lygqAWrsw0cAjANwrNn+32fJYokyJh+qnofSSztfNSbgfRKsA47KFS1eBoJ6fqzKB QLlZxyKEfZj3dwoDJrCzSzEgPIQ8DBkU8d3vPyZQR/8fFWkS8uYOC8M0TUjNAZ/5X8 QeyuIOAUDuHDTrQ8kFLUPePnOt/tvXsO3URkdBhXWZmACcWw4lZy5edfeMyJhauxt6 UP6D4JRF13qwgVXiTN494GD7b5T6B0VE53e73HzYtPJ5rGQBktYgAKka5G+YtMYalK VUbgZDhlWAe8urxwNPAlXY9uvn3bA8AoDg3cJhFv0a8PKyUJT2RdF40qPHgDrJtGJ4 0chnGWOQHpBow== From: Frederic Weisbecker To: Peter Zijlstra , Thomas Gleixner Cc: LKML , Frederic Weisbecker , "Rafael J . Wysocki" , Ti Zhou , Yunfeng Ye , "Paul E . McKenney" , Marcelo Tosatti , Ingo Molnar Subject: [PATCH 04/10] tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE Date: Thu, 11 Mar 2021 13:37:02 +0100 Message-Id: <20210311123708.23501-5-frederic@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210311123708.23501-1-frederic@kernel.org> References: <20210311123708.23501-1-frederic@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vtime_accounting_enabled_this_cpu() early check already makes what follows as dead code in the case of CONFIG_VIRT_CPU_ACCOUNTING_NATIVE. No need to keep the ifdeferry around. Signed-off-by: Frederic Weisbecker Cc: Yunfeng Ye Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Marcelo Tosatti Cc: Rafael J. Wysocki --- kernel/time/tick-sched.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 77dc8cd61dc8..c86b586d65e0 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1194,7 +1194,6 @@ unsigned long tick_nohz_get_idle_calls(void) static void tick_nohz_account_idle_ticks(struct tick_sched *ts) { -#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE unsigned long ticks; if (vtime_accounting_enabled_this_cpu()) @@ -1210,7 +1209,6 @@ static void tick_nohz_account_idle_ticks(struct tick_sched *ts) */ if (ticks && ticks < LONG_MAX) account_idle_ticks(ticks); -#endif } void tick_nohz_idle_restart_tick(void) -- 2.25.1