Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp321897pxm; Wed, 2 Mar 2022 16:20:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyf56Rj0TDM++qgbP+Dl0eQBpHDBiZMAJSuJzgHmoM+ZSvpoDjTmpxGFtR6lNGNJKhAocdP X-Received: by 2002:a17:90a:7c09:b0:1bc:a2fd:d4d8 with SMTP id v9-20020a17090a7c0900b001bca2fdd4d8mr2461281pjf.73.1646266846762; Wed, 02 Mar 2022 16:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646266846; cv=none; d=google.com; s=arc-20160816; b=QFPJxQVUB3v1TpFal1WG1o8nzZFtOtXaxt4d3dxpTxHHt5RxlYhdQduU/LsJCwTBdW cnldZSVZIK4Pl4TF3SA8A0kY7RqW+l10165Eqgfg88bIqh0iop6EamCdqcZQse6c1/MZ avAeRYkQaTJGHbIkZJLy7KpUQXLLk8byXFEWBeR01Jopf9XzcduvC0U8q9YvOCh3XQl2 zDznaw6Vo3GVqOfpFIVrYqOlnjQdtou1r6XRMI11aFQ64WatHmxI6il4tjGLUnOJdtFU r36wb7XMfYmuUhC/PNN4fAgdN2a97iTZpDGuyAQISi6Jm/E7v2r6uk9r8xRazoNYPu8m KmJQ== 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 :message-id:date:subject:cc:to:from; bh=0ZExn3E6g1n0AH+pAAnOwwb+wE1M+8QDdzMFJIXkdeo=; b=XiGUJE0Xcxgk9E7/bwusGKliwAj3Yn6ldhCaK7KOCB1CvblDHHRu/Y7RkEtXmSOuR+ DDQFV9gAPUSCwXSEIpeLxmWjjCjz4qhLsm6my+DJHSBt2XqUK6Jd0mUPlntmTopHjuw4 +UYCo4UZR0OAYTQS2S9rzyLdcqKnIsk80fegB6uikUstOs1+AHcxC4ClEVCy4nXDIut2 VbEM5pgX70MzAjVOnVgLmS+u0GG+qJuM7i5CsYkJweaNd09ZuEGFQ4rpFlTlpToeMOnP UGpX2DOB+rBRjq8mTrkGyoTLTiY1OeO85TT0ZOzKudr057JmuOKP6W7MDptVSQg+iOFz 8sdA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c4-20020a6566c4000000b003752313408asi534925pgw.351.2022.03.02.16.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:20:46 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C4E3E1EC26B; Wed, 2 Mar 2022 15:33:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244604AbiCBSfa (ORCPT + 99 others); Wed, 2 Mar 2022 13:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236812AbiCBSfa (ORCPT ); Wed, 2 Mar 2022 13:35:30 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 76C0FCA0E3 for ; Wed, 2 Mar 2022 10:34:46 -0800 (PST) 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 3E3D3139F; Wed, 2 Mar 2022 10:34:46 -0800 (PST) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7A4383F73D; Wed, 2 Mar 2022 10:34:43 -0800 (PST) From: Dietmar Eggemann To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Daniel Bristot de Oliveira Cc: Vincent Guittot , Mel Gorman , Ben Segall , Luca Abeni , linux-kernel@vger.kernel.org Subject: [PATCH 0/6] sched/deadline, (rt): Sched class cleanups Date: Wed, 2 Mar 2022 19:34:27 +0100 Message-Id: <20220302183433.333029-1-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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(-) -- 2.25.1