Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1905671pxm; Fri, 4 Mar 2022 05:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAjIpxrPccKYdwqqXZnUQrfMT4rrIYAr567FR/478jmMeoukF46qMVg0w32NSD1nHHbQqM X-Received: by 2002:a05:6402:2750:b0:412:f7a6:6d52 with SMTP id z16-20020a056402275000b00412f7a66d52mr39024115edd.187.1646402002978; Fri, 04 Mar 2022 05:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646402002; cv=none; d=google.com; s=arc-20160816; b=gEWQw8fk8rw+zHc/PRswrHR3kGX8ibugkiF6/JANupydK8McgCtDAwMu64c96n5ECv LT9fUOqMhX642Bxuq9WBRXPE67cBwIiQd+EeKoR+ZAnS6vkoaAzDtjvZuUUy20/MUWX9 Oz9sGziQtN0EYYA1vYKKgqLSVnrzl+mFPiQnw+u+BedYcndpeVUX/LhD4Axlrg+AP+JA L63dvuZ/4bZSkhlJ3FgXF0TckpYBSFbxiClb8F0Wz75/aqKBbow8xHCXSi1pBotl41hc FbLu45Q/fjC03nKUKbqFjJZ6cuHMTKGPNsNjcbkI5zDl1Ggm5npkw1p/jReNKi2ukTOY nDjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=soYLqIaabrojJTsdxVxq7SKnvZyWr2ESfZBpZ/MSOIM=; b=wBwgBzPUVuNxcAsq0IxSyGIPjACTdjTysQV2XEeisynK5iH3nUGYcVvJYnuQyJUIWo OxisfE4RFAhi9HJUl2wtAdriHkviXJIhXeOl4ShT9pqUdcNvhMSZLligDCv+afKiXGzw O564m4QRvBnx1ADI99Mq9FFupMH1vWo5Hid+EerhbiMCC4rJwESSoAHDZbew0b/7B239 1rF6Y7B50pc0MOPkU9CuIc/+fbrtF8b2pgRegBty38i1UOsvTWyYlLxkXBApn/6mBsV2 nakpYbDq37BEem7YCBTe+u4LTTgTGTsdFin1yMyyysZbSGt5Hgw7aidGR+1Y1SNAkzg4 zxvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ldSSjBN6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o20-20020a170906775400b006cfea3fc8e2si2902935ejn.415.2022.03.04.05.52.59; Fri, 04 Mar 2022 05:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ldSSjBN6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiCDLk0 (ORCPT + 99 others); Fri, 4 Mar 2022 06:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiCDLkZ (ORCPT ); Fri, 4 Mar 2022 06:40:25 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6FFE1B4A for ; Fri, 4 Mar 2022 03:39:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=soYLqIaabrojJTsdxVxq7SKnvZyWr2ESfZBpZ/MSOIM=; b=ldSSjBN6xi5Dv2O2I+P4B4NsgB LhdNpQ4gXpormFHR4jxrp3KDBCQQzfIakm4LZzmDMmjU5pCERn4ieQYiqRQB+NrG+pQ8jHg9ciSq/ UY6FpyVEn23umt20IuCTqnc/92WWVa22FxrYuiWIz816/TjKygSx5FL1hf0Z48o0mwkLQv4onCFlA fxQPsydbX5tCziDYjm5tTLwK8s0nDsMSDQ2ZYPSDqOlqb2/vMblaa4WJoChvH8+Ua0YhcdbvIwvhG RK7doZxRPOCeTh/CbWvDugBJZiR9a2AkaD9kp7l1KfiF7ks61bnOvfy1bJZl1e2ejgesxHsQoOk0g 4KtuwZAw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQ6HF-00FBIZ-W6; Fri, 04 Mar 2022 11:39:18 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A95483001EA; Fri, 4 Mar 2022 12:39:15 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3902C2C7FBE92; Fri, 4 Mar 2022 12:39:15 +0100 (CET) Date: Fri, 4 Mar 2022 12:39:15 +0100 From: Peter Zijlstra To: Juri Lelli Cc: Dietmar Eggemann , Ingo Molnar , Steven Rostedt , Daniel Bristot de Oliveira , Vincent Guittot , Mel Gorman , Ben Segall , Luca Abeni , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] sched/deadline, (rt): Sched class cleanups Message-ID: References: <20220302183433.333029-1-dietmar.eggemann@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On Fri, Mar 04, 2022 at 10:21:49AM +0100, Juri Lelli wrote: > Hi, > > On 02/03/22 19:34, Dietmar Eggemann wrote: > > While trying to improve the Deadline sched class behaviour for > > asymmetric CPU capacity systems I came across some possible > > cleanups for DL (and RT). > > > > Overview: > > > > [PATCH 1/6] - Remove `struct dl_bandwidth def_dl_bandwidth`. > > > > [PATCH 2/6] - Move functions into DL sched class which don't have to > > be exported. > > > > [PATCH 3/6] - Merge two DL admission control functions which provide > > very similar functionality. > > > > [PATCH 4/6] - Use DL rb_entry() macros and cached rbtree wrapper > > `rb_first_cached()` consistently. > > > > [PATCH 5/6] - Remove unused !CONFIG_SMP function definitions in DL/RT. > > > > [PATCH 6/6] - Remove redundant function parameter in DL/RT. > > > > Dietmar Eggemann (6): > > sched/deadline: Remove unused def_dl_bandwidth > > sched/deadline: Move bandwidth mgmt and reclaim functions into sched > > class source file > > sched/deadline: Merge dl_task_can_attach() and dl_cpu_busy() > > sched/deadline: Use __node_2_[pdl|dle]() and rb_first_cached() > > consistently > > sched/deadline,rt: Remove unused functions for !CONFIG_SMP > > sched/deadline,rt: Remove unused parameter from > > pick_next_[rt|dl]_entity() > > > > kernel/sched/core.c | 14 ++-- > > kernel/sched/deadline.c | 141 ++++++++++++++++++++-------------------- > > kernel/sched/rt.c | 16 +---- > > kernel/sched/sched.h | 53 +-------------- > > 4 files changed, 84 insertions(+), 140 deletions(-) > > These look ok to me. Thanks for the cleanups! > > Acked-by: Juri Lelli Thanks!