Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp324182lqg; Thu, 11 Apr 2024 04:22:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXs7CMSlFKUClCABL6Cwq6YTA7udxpgvVU0B5bDfXH9aMrFa3eKKNKirxkTuZr655LuTnlNi5JsRIbyhhpgmrnHHVQSrsqwAAgUMVhFMw== X-Google-Smtp-Source: AGHT+IH9uVUiJpbBgAIk0Sf/UMuIQl12J5jOmPD0kRwlg11pdzJbReFWDo2TGVv/J04wYmi1X5of X-Received: by 2002:ac8:5a0f:0:b0:434:6c4c:d937 with SMTP id n15-20020ac85a0f000000b004346c4cd937mr3845422qta.17.1712834552914; Thu, 11 Apr 2024 04:22:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712834552; cv=pass; d=google.com; s=arc-20160816; b=NCcZ81Gsgrb88oHSpEva4tu2K3YKuAp2UeHWKVUkuVJfqyd0a5r6H6OoI+dqglhWes j+zVejMYyl+/IHIG9jzUVC0ZyfFbR0tbmv8b5jPLQ751p+OYbr7SE80KvndVpoxw8lqQ oV7G+7qScVR3Ina6XNsbvirzs8BBTIfRfK5ML+LTST6tPjJdERtNQGMG1tZusj0iPE7F XTMW+3ji0v/i8AEToJsNOhsGJ/cl6//5HNX02T7C2iq/dep5CdHS8n6WxrAgBLLgx2vL rG8VhJ9M4Vn6DA/nO2YFayqVhj8aT1y2P7RA0cHIe+Ep8DFcszRTqyQaspLwI4E7WZ5s 7/hQ== 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:message-id:date:subject:cc:to :from; bh=TW6fXDhBZCtyIfu2UFewfBT6ZPQrESYz49YQkkzsY6A=; fh=rLhT1LIAJp3xRq7XZUZmtqfd9GclaI2UY7aPQZH9ap0=; b=Vop9B5EoiTBfvpcA6snwV666+/Vh5ha8L0/fCYLhTtfe4ZVmW88JZNaXCobuefvhwo SJ0HAyChLYo4qhcyk08OSVByg4chD7iub1mQqvHvSEEWrHDd8LoAllWvImO6E//R/82r eXCzwgzZFsjqBOkL8DEnaVjhC5vokG2J0LelXQT6xU9MZvpuC9BJZFuagcF1buPKOyEY 48nlomc6J0J0Z192CpFreSvL4xiq9iBTsXIxpMD3ekEfq0fMujtIYyqnj1M80gHIt2nQ fMNuugjyWFJKW26S/InOzWIeHIN0QpOQ2FqYlAoU0qKLwpBvmEew2Ehm3TpHwyqdYj9Q OHMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u31-20020a05622a199f00b004315aa17914si1293555qtc.311.2024.04.11.04.22.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 04:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140330-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; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140330-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 A308D1C2158B for ; Thu, 11 Apr 2024 11:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 427C61482E9; Thu, 11 Apr 2024 11:22:26 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 EDAA913BC33 for ; Thu, 11 Apr 2024 11:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712834545; cv=none; b=TdLbGOns9kCPLJEwmcWKTQUofCGrSYCsVpSIZAiFutbQrcgRFtdhOxo0oyP1HTsx0VpPzoW5lhEaC6pVQxqoMROhWNxLBsVmrD4CmfHZUNrbODIr6IKbf6OtLFTX9mfVB9YbSVRxJmCvxYigTpo25KySTRookAsfZn/MVKE3tuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712834545; c=relaxed/simple; bh=fTMl6zXHK+rSadzbwABHstG/A9xLT+lsxxrNWzi0tNQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ZbIKWZcZKSFhoXM/am3e+j3AjoBv2vqqUM/1xKutsZonlYSjFxcpLKZL0pqhzNYCIZiXg3gALUuQ7qJnJyssDe92eXLdjiEyxhzUR7nejWIbr9dN/T3KCQqvFiv/o0MpZk4vF2P96WeUFrYg8E20q4NxOAm8myU7D6eiVYxpW6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VFcfQ2H00z2NW5r; Thu, 11 Apr 2024 19:19:26 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id E48D61A0172; Thu, 11 Apr 2024 19:22:18 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemd100011.china.huawei.com (7.221.188.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 11 Apr 2024 19:22:17 +0800 From: Changbin Du To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot CC: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , , Changbin Du Subject: [PATCH] sched/cputime: remove unused vtime_account_kernel Date: Thu, 11 Apr 2024 19:22:12 +0800 Message-ID: <20240411112212.2061899-1-changbin.du@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemd100011.china.huawei.com (7.221.188.204) This removes the vtime_account_kernel() function in generic vtime accounting. It's never used anymore. Signed-off-by: Changbin Du --- kernel/sched/cputime.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index af7952f12e6c..29320e66abdc 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -709,18 +709,6 @@ static void __vtime_account_kernel(struct task_struct *tsk, vtime_account_system(tsk, vtime); } -void vtime_account_kernel(struct task_struct *tsk) -{ - struct vtime *vtime = &tsk->vtime; - - if (!vtime_delta(vtime)) - return; - - write_seqcount_begin(&vtime->seqcount); - __vtime_account_kernel(tsk, vtime); - write_seqcount_end(&vtime->seqcount); -} - void vtime_user_enter(struct task_struct *tsk) { struct vtime *vtime = &tsk->vtime; -- 2.34.1