From patchwork Wed Oct 18 14:07:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 154888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4817813vqb; Wed, 18 Oct 2023 07:09:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0INDeYHlxXH60sGMgzXdXBRPQ5pARpEmSwnSgEVidM3tJODHO/F3sjtG8K5K2aIYIBae3 X-Received: by 2002:a05:6a20:ceaa:b0:13f:65ca:52a2 with SMTP id if42-20020a056a20ceaa00b0013f65ca52a2mr5122468pzb.5.1697638167503; Wed, 18 Oct 2023 07:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697638167; cv=none; d=google.com; s=arc-20160816; b=SCwHw1Fy9skVMNS0poKq5dQEg7bDpLPc798Ph929QfWBfyJR15dHxeE6NPea1NmT+j U4q1Q/F/+L4Ftv3fjwlpDoH/I0LVymTHluUq3NaWCLEk9n/iVyzMNQYa4A5MEIFoFjAe +D4mBr+x4cpKhnf9Y1b9XTsaxh+TXzL1NZRDi4Oq+lmC3V3eCP2Nl2U13fGC++vR1/aM BehdUyfA3JDWzulyJ0ZSr0y3KPwWZ8OsC1vI2Q6Kz4Hueh5XJ0mEdJASYwy45Iq1vuws VW+FrJflsL0WwIORPvJr7Ryycm5xvSTYuOfZwS0ROvgpig5mlmgK+cHTyKnp6fDStPuj Nmjw== 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=MSt120ujaCbI5iqH61p99iQMj5WX9vWzUelkG1NabO0=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=m7j7N/ssNzr6kSt9HZ8ak1kgir/PDWHT1s+cfU54JlTeOZrbaLrJr9THwOBUVwcYxC Elm/d35wDqvIm7XBYu5u/NyWyZ6iqf0GmQLLkhrQXHEPwPrMg5eEvRvNPtcFs9iBsXQW qQV6KlFi1/GPKwfv70q18F9vnkAKOkeotqLn4/NMwd9i/4znMjc+C9+MCZ9SfOkxBI/s Sf5k4E69yPc2eAtInk0wEONdRNbzE88c+bSi989kru9o4UhPCRx8ZfdaaLJAPHaPv8yB Y2fPrc9F/Hp+nNSb9JDXPdhh+z5vdGbdlWHWmKYU79QQcDJ7EhPaXmxgdNk90/vKido1 Z2ZQ== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h71-20020a63834a000000b005ad727cfd10si2120418pge.132.2023.10.18.07.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:09:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id AD84C813CDA1; Wed, 18 Oct 2023 07:09:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjJROJR (ORCPT + 23 others); Wed, 18 Oct 2023 10:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344843AbjJROJH (ORCPT ); Wed, 18 Oct 2023 10:09:07 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B1F95 for ; Wed, 18 Oct 2023 07:09:06 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S9Xfm5FCJzCrSB; Wed, 18 Oct 2023 22:05:04 +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; Wed, 18 Oct 2023 22:09:03 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH v3 08/19] sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency() Date: Wed, 18 Oct 2023 22:07:55 +0800 Message-ID: <20231018140806.2783514-9-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> References: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:09:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780102638891368308 X-GMAIL-MSGID: 1780102638891368308 Convert to use folio_xchg_access_time() in numa_hint_fault_latency(). Signed-off-by: Kefeng Wang --- 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 c50271f39d91..b8c52893b3d9 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; }