[-next,v2,08/19] sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency()
Message ID | 20231013085603.1227349-9-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1751809vqb; Fri, 13 Oct 2023 01:59:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpLI8nbT+QwQzrt6rFemDs3nRppvD3SFc24YbPVjIRiowMW5dNtPTG6qXBsuxNPsJxH5SA X-Received: by 2002:a17:90a:3da1:b0:274:60c7:e15a with SMTP id i30-20020a17090a3da100b0027460c7e15amr23796501pjc.4.1697187569367; Fri, 13 Oct 2023 01:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697187569; cv=none; d=google.com; s=arc-20160816; b=XXKGPHKMiE7jSyTUZyC77drOLssLNfhACN0P2HO/wucabkApfsZTB3Fp0MOlmfQduD x/R6qk/3sUl7ma7Sdw3L30ds71lH28ST7d2yfgxCLM9H+OQ/RwP0gqD10/SMdPf+h5Af SbU9CgNfF4TEMgy4EIu/0+vbBuvkuBddACuEiIEdHAWT0WvfIKURFcKwRW3erpyy/5IU WPi9SJG29QIuxgFCVq/Jg+NQmBnBGQ7Mjt+U/zWxL0dpT45CmQZUnpV3Sh/TbWC/S/ZE yTfXgeI+xDbUVvcMTawn5kSP9bKorELoWm5HTl6TEEwATUFCdNL6wjOXfG/XF8T9vGXd HT5g== 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; bh=1zLpUnjpBvurR96XU6U560Rf31eHqGYds42Z0gS0iKo=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=S5kNzBXPEEDMYLonRn3Q19/15zdctPX1Pm8W4cHz7bkCb4BB1FK3jYVNoQ/J+O6NIo +bmzq2EqVcfvm6XDwbM/Aofdife77ROvqX7Qmgd5Z72wm+ZeOK4uQjZVEfgEKDO9s58s D20ONWRJaCYwXLfdTbV7KEZ6TIVKA0qeIcQ/gm46r9mZz3g5d1+/kkPAMMzcRTsJ3glY 1k0N6JgEw8BosmAbnPnxNVeOZ2+CG8AGLhXhPxNuiebzcyApULMW6xmn4yRpX+aNf+Ho +8NlwpaR8TDu1bgbfPGkaxa/CmgVDEbngHwhyMZv+I6P2LEcWHOhoHZuCuarGWrWGPsi Tx1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n11-20020a17090ac68b00b002790b1320d4si4080594pjt.84.2023.10.13.01.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4B8B482B90F3; Fri, 13 Oct 2023 01:59:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbjJMI7I (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 04:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbjJMI6b (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 04:58:31 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71BCDCE for <linux-kernel@vger.kernel.org>; Fri, 13 Oct 2023 01:58:30 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S6Kzx4wvpzvQ2w; Fri, 13 Oct 2023 16:53:49 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 13 Oct 2023 16:58:25 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <willy@infradead.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <ying.huang@intel.com>, <david@redhat.com>, Zi Yan <ziy@nvidia.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH -next v2 08/19] sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency() Date: Fri, 13 Oct 2023 16:55:52 +0800 Message-ID: <20231013085603.1227349-9-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231013085603.1227349-1-wangkefeng.wang@huawei.com> References: <20231013085603.1227349-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:59:24 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779630152980369289 X-GMAIL-MSGID: 1779630152980369289 |
Series |
mm: convert page cpupid functions to folios
|
|
Commit Message
Kefeng Wang
Oct. 13, 2023, 8:55 a.m. UTC
Convert to use folio_xchg_access_time() in numa_hint_fault_latency().
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 78ad23fcb7f9..bc07f29a4a42 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1766,7 +1766,7 @@ static int numa_hint_fault_latency(struct folio *folio) int last_time, time; time = jiffies_to_msecs(jiffies); - last_time = xchg_page_access_time(&folio->page, time); + last_time = folio_xchg_access_time(folio, time); return (time - last_time) & PAGE_ACCESS_TIME_MASK; }