Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2014983lqo; Mon, 13 May 2024 05:44:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr+Yiq5sNw+qZ20kUkwLV4nYxhC+RM3lvXidacwG05sT7MsJTeUcNg5mZyq9fRPNw0Hi+6staRWu7JQ4GktnIAI+t4OHpCndtexMFQ4Q== X-Google-Smtp-Source: AGHT+IEktrHRzcZFizKDhzlluNwRBbJAgItnq3B2pFOurYJzIcvtot2BeNM17nmZxn7LFFJWjW+9 X-Received: by 2002:a05:6358:109:b0:192:2717:4ed4 with SMTP id e5c5f4694b2df-193bb00f621mr1162803855d.19.1715604261947; Mon, 13 May 2024 05:44:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715604261; cv=pass; d=google.com; s=arc-20160816; b=yuWaLBn4f37BXn0TE5+TjUYH0KaH0CKp6yRHDHp5GaSrWUGIOb7R0el4ICg6SXGPf3 nT1gmCX/IZw2ygeNv9K8w5KJius+0KbO6qfMtDj18eDL+dkluOmWV0m9vaKDKb4oyKrS Ecj0FABazme7oRHEkuOzTAcbvRfF2Ld3KKj4qZ1qajlMF5G7XgsjsHQFzqC9MFI+uGKx MYwHrv6YqUCFCcojOCCYTmq+Qp0jS4wJEHWkMovEYjk6yMrkh7hGxWtEjCdb4Waot2al ZahMlZv/UTsNqoZM+ivrg05CzW2BXr/RY3VI2bGR1wTCkstiBs9GMy0JF3dwflxzKRd/ yhqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=QAPSaaQBIeWYKrN3A3BJRZwgCe7xODt05n8noQBoPQ4=; fh=/8zeHEWO+WKMZNAJWEZwfQ3aKQLkRr8yNcR2IhJawQs=; b=uDZ10tCDodAmli+8TFS69l4Du98JpYU7RxpwUdeHNCU3RAbI7IW3rSpMZitrdRySpc 3rsJEYZr73nXVRzfWLEwjN3OBQDXAjVrdlHJn5+QPXBY2MtPyhrByiaayWUFEldmKKMx xAxk7wjeM5Kw6t/inokDtqMUF0gfZpWO1Ngi/nGwwUg3ITvyprlGCUPG8eaktYFZdNhm iJK615ru+E9FoiCAE1uqAd9ecZjVUWX5o2u8wfc06ZCs1zUdkrl3vvW/9lKY7xxaqFSQ xGudWtklsa9wWvnkhFE7kteNXmaHeL/cI3dnymn/3NMV+7YTH9eP63SRSbOVNTzgkVgt lb6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-177572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412a4dcc4si8980513a12.720.2024.05.13.05.44.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 05:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-177572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 63DD3281CA6 for ; Mon, 13 May 2024 12:44:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6117314F9DC; Mon, 13 May 2024 12:44:15 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98830A3F; Mon, 13 May 2024 12:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715604254; cv=none; b=Ors9WQFe7soQrWR/uiGL0OLPctJaqvFLdR/QkxWj3cvYm/WTC3ELYp7lesZ5+7LrrqQXtUPbaqOqJDlmIez81m58WnO701mWNtmIvJo+ggjPPIYCqOQuXmdjqxt5rX96Bf/qrYkKSZl25lvESU3iPH+d5y4/p0ZLR9JRcUm4WXg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715604254; c=relaxed/simple; bh=/b03Zf1aRDdZv7Bhcjq4xGxDuP82x35zRerWPUH3wHs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VAlyK+f1v9uwlfkEmpERjS3Ti2cVxPP0L9liiaXZTVapNsOC9jbX6j/REc+rIrO0IiGZLzdH21+ZG8VpibX+w0D5TZ1MRpozkanzOLmScol27dJf2ZyN2wqwn9T9TbPNw2qOroivElTGvqL0gXeCtK4NItTObhbOl9l/GBesmWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D04781007; Mon, 13 May 2024 05:44:36 -0700 (PDT) Received: from [192.168.178.6] (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA61E3F7A6; Mon, 13 May 2024 05:44:08 -0700 (PDT) Message-ID: <9e845146-8a31-407c-a5ee-e2e32f1655e5@arm.com> Date: Mon, 13 May 2024 14:43:55 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] sched: Consolidate cpufreq updates To: Qais Yousef , "Rafael J. Wysocki" , Viresh Kumar , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Juri Lelli Cc: Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Christian Loehle , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240512190018.531820-1-qyousef@layalina.io> From: Dietmar Eggemann Content-Language: en-US In-Reply-To: <20240512190018.531820-1-qyousef@layalina.io> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/05/2024 21:00, Qais Yousef wrote: [...] > @@ -4682,7 +4659,7 @@ static void attach_entity_load_avg(struct cfs_rq *cfs_rq, struct sched_entity *s > > add_tg_cfs_propagate(cfs_rq, se->avg.load_sum); > > - cfs_rq_util_change(cfs_rq, 0); > + cpufreq_update_util(rq_of(cfs_rq), 0); Isn't this slighlty different now? before: if (&rq->cfs == cfs_rq) { cpufreq_update_util(rq, ....) } now: cpufreq_update_util(rq_of(cfs_rq), ...) You should get way more updates from attach/detach now. > > trace_pelt_cfs_tp(cfs_rq); > } [...]