Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp351405lqg; Thu, 11 Apr 2024 05:16:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgfSVcqlyWKlfNh4M3bcQj25VdPtulyQd5PCxE8qiQAutv0pmp0INIO+UxT6bQ+Mo2uS2QezNOFyAXx75u99S4blG0BDX/jsLhfTzUBg== X-Google-Smtp-Source: AGHT+IH760R1hiaGB2WVuEptGYWvXno7etVsIe+OposiEq3xoEOr1kaRIjgh8sgwtpqUCqZjJYyS X-Received: by 2002:a05:6a00:21d5:b0:6ea:c9c3:94a5 with SMTP id t21-20020a056a0021d500b006eac9c394a5mr6974206pfj.0.1712837769806; Thu, 11 Apr 2024 05:16:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712837769; cv=pass; d=google.com; s=arc-20160816; b=e+AhbZa0Q7qJbaXbS1BR0n1P+bO2txgRY4A/HQb3YeM+e/4hOKZyVD/F6A0dTj4B/C gBFBdk1F5ROzw3eUPwYt1tbdri1SgqsZaQyMwPPdhbGDoUHRx+IIpbsOBJEHoRtuWN5D lIL5/tW8GZS9fzq5Gbqmtc+dj39Tg1BLnpQK4i61DSfj1AuZBh4OjtDalH0V1xFUDD8V 1v/GjdXFVlyUtndCUucFIhGfkx6r+8dZmJIjypCakiHU5NefXgyER3RW4X0D5oWohqwm 1HJrrZduO5rTQo3Rj9eHw8/bxc1B7O1iYRCo51hhvpCFse8T4nRu337NUIWqGsnhPIts KgmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=7mFUFzuNJK1sE8gfH+QskvbiTBD6fDvvF+TdqtOBKVI=; fh=WmMhpfBLGSGg1AgO4GUtd3Q8klYCEXiSC5g8K2tnYkQ=; b=EN4QixHf9UHrvy9vgoc76rkr9PsVVrz6qBGxDj5p1gfHpznPUCG1rLIGWu2O/zqkk7 iohJZJhq+zGY/V/5X+8M0JYYFb7fBPKMXqb7HJgZbUodr3nQnlihLM/B7+Dy795BPmkH jgo5pG9+6WJ4A1IU2tVtV7MR8IaHUuI5ejOSi/BTEFP9cqSCGhfWKee27mfNDNM3IEcH vNizM26tbE8R39MMRM2Tf0yJL8eKGmiaUWH6lUOwu+CwfsTsmsc06rIorxj8h8bHvZQT 2g/3YuAZMuT6cGjeqkEa1rL5VRjjt77HvwalqwrBNkR1jVHlUWwZM6L/hIiRKgc5fmik ZybQ==; 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-140403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i17-20020aa787d1000000b006ecf5e41c09si1282393pfo.382.2024.04.11.05.16.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-140403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140403-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CBD28B25E0F for ; Thu, 11 Apr 2024 12:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D79914AD32; Thu, 11 Apr 2024 12:05:54 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 035CA1442FF for ; Thu, 11 Apr 2024 12:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837153; cv=none; b=RETMjlkg9nk9dHKWf6BEtUmKziALjILPlC4eU6HqhAN6Cginw5m7H8RFP+v5+U+LaFNh3xaR9iPmMxfqwI4cAMOHHj0bT8VftKyhck27cl8CbEqYKMyyHamyRHmuz+2mIj3BdtpTZhhnbYCMcfBSDK7oUUHAQhTqU/BTGWlg7XM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837153; c=relaxed/simple; bh=HdYNqVCEe0x2X0F2EaUSXwNmY01gm1OpopI72QHOmK0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Yh8Q4PmFK1WC0f3WNU01QeNJ89YRBhCruDc/dKeHI74f062GZBPTfk8kTE00YwCf419LW/AQbG8sZPCSBG3Xu47KS3qJPrAbzjqTQBXnraNhxbEBz6XKyD8SJ7AOz/21YGgSOmUqeoahYco+KtBDtUlaKJKeF2OtJWaTKQwECNE= 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.255 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.174]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VFdcm0dhXz1R5XH; Thu, 11 Apr 2024 20:03:04 +0800 (CST) Received: from kwepemd100010.china.huawei.com (unknown [7.221.188.107]) by mail.maildlp.com (Postfix) with ESMTPS id B2D16140EA2; Thu, 11 Apr 2024 20:05:48 +0800 (CST) Received: from kwepemd100011.china.huawei.com (7.221.188.204) by kwepemd100010.china.huawei.com (7.221.188.107) 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 20:05:48 +0800 Received: from kwepemd100011.china.huawei.com ([7.221.188.204]) by kwepemd100011.china.huawei.com ([7.221.188.204]) with mapi id 15.02.1258.028; Thu, 11 Apr 2024 20:05:48 +0800 From: duchangbin To: duchangbin CC: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , "Mel Gorman" , Daniel Bristot de Oliveira , Valentin Schneider , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] sched/cputime: remove unused vtime_account_kernel Thread-Topic: [PATCH] sched/cputime: remove unused vtime_account_kernel Thread-Index: AQHajAKDIkVvBXkJoUKksEBvgpwDs7Fi+RMA Date: Thu, 11 Apr 2024 12:05:48 +0000 Message-ID: References: <20240411112212.2061899-1-changbin.du@huawei.com> In-Reply-To: <20240411112212.2061899-1-changbin.du@huawei.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: kwepemd100011.china.huawei.com (15.02.1258.028) x-ms-exchange-messagesentrepresentingtype: 1 Content-Type: text/plain; charset="us-ascii" Content-ID: <02E6C0AB2AB5CE48B135099171E224ED@huawei.com> Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The vtime_account_idle() can also be removed. Will update this change. On Thu, Apr 11, 2024 at 07:22:12PM +0800, Changbin Du wrote: > This removes the vtime_account_kernel() function in generic vtime > accounting. It's never used anymore. >=20 > Signed-off-by: Changbin Du > --- > kernel/sched/cputime.c | 12 ------------ > 1 file changed, 12 deletions(-) >=20 > 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_struc= t *tsk, > vtime_account_system(tsk, vtime); > } > =20 > -void vtime_account_kernel(struct task_struct *tsk) > -{ > - struct vtime *vtime =3D &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 =3D &tsk->vtime; > --=20 > 2.34.1 >=20 --=20 Cheers, Changbin Du