From nobody Mon Dec 1 22:02:13 2025 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 607E5311963 for ; Mon, 1 Dec 2025 12:42:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764592945; cv=none; b=nIApj/OgPXDTeEeeefKteWSIlOpqLwOU1b1InMubOBfCOLUpJ3JQxUAcBJlUD/Yh2pLWsUlDrMihW5ZDbNTFnKRis16BIT6e9/zvdPLmGM4MAT8qWBZoXPYuqDbpUNMdDiCoAVmCW3vlju+MDIZKRAbYYXcFq6eNvPcoz/tJLXg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764592945; c=relaxed/simple; bh=T1qGbhRTkC28d7o63YuT93RIlLek17T4jLGGswVSUIU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UraFwGufqKE4JSrOu3juUnKLj+RtmLteXMseqTvTy7en39bu5wXa37GVr1r8b9qq8GWF8sYvqVqrFQvutaQa+52HF95+azP8+liTub/SF5nkNLlJHA7+FD9EEAeJA+xWnQCMwd187JhayCvytYwLuzx43DqMMprgneN4AilMhBQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UXdLJLDW; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UXdLJLDW" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-640b0639dabso7349475a12.3 for ; Mon, 01 Dec 2025 04:42:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764592942; x=1765197742; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/44OW1N0N075v+z8jY5sCVSRCT5RDByQx5KR+2xJP54=; b=UXdLJLDWmCbwqdCfxPnlzOY4ycSQykLE62aDbw1R2DC9l4IxVflxeByoTnPlifR44L kuccZUHpai06inQnIuJCsFbBG6pA6My/RQRNcRJRpgRQqceAA8EVzaxq1uWr8r/xG6+L kZx1wPDTLQ6lJgX0tXdqy9NHDpsnb+jZTBZLV10QDAG4DEdguBrZaX4hNP8zmwfdUk5x p8wBy0eytP0Yanwo89qmOL1+PbvwYrtx0fDInW8/PszwCgyj8+5Uz+brfM2raL3U/Yqk UA0ODK/2P3VofktexlslfxY6gjvf4au4lWvz6A9aDGxeSmK57Uc1SSy/lg88tXchbRH0 RvHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764592942; x=1765197742; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/44OW1N0N075v+z8jY5sCVSRCT5RDByQx5KR+2xJP54=; b=plyrtKzQZedbU9FGgWo+5QsbkGRje4+gh9leUcAgK3ofo2NF49nfVAHqcokU/GfBZ+ wSyE968flBADrQ+qxm1giat6VM+Gt43s7+MmtFjhY0QdjNrzrcClLZYGJoEjMAzUSrVu frlxUyue1+gicBIyb2u+qDQcfnU1pMOJOG0e0/NG7oq2147t1J8d5cKhmW/CvzrzShCA 9N5Lt3OR8gYx7n2NrNSnZAYg2oNqo8/tQDIx+itOglPrGHkaMYk/tp6AQAMK4E2RCTOr EOsNaoUWWP3/Jr6OfgQHFQVXl67Sp57kLeOzMjauq6iCFdjQJjRVFLJQ4hFqhEcJKTAk haVA== X-Gm-Message-State: AOJu0YyD/pYxWGDbJ0Z287wkvh0KF+fqNdF5gosRBkr65S71AOQX053J U4iMKkVCZpZabnhg0SEGjOaoyInqcfJ3e2aagUV8ixmkQUsZpMjErHy1 X-Gm-Gg: ASbGncuTH+iFKrV+GyF19UvE8Xq4tCfSyRE9ahzGfbt8dgMrC8LK6K0hTqq9wZwMakO /aNtTUHDeuTd80xSLRzm/13em23VRxX8isWR37iuRu5HsjDEk9XSRsbEsGG7HY+tcoD45VYyU9A YqKXucbsriJRem5jv9wcNdwbpj0WksF1k/Rto0E3h4FzCoihTKwgllu8R9Y0t+Grrupi15E1Yn0 JkRFo3Rsm6vWXix9CGm60hk0gsJuUUtWi6Tg5bJowUhrOvAIk/bnqYhWfXLqI1Z84EjZYclS6z0 eBXNuDHzUDVCRsnYVSN6sY8nrCsm9rbW1/cP3pIvjlwT0MrAkDi/rLAM84Y5AqgTr3D/2Cx6GQ6 I7qVUcUIsTz2sOSXm8PxaWKHqaUAJbPShTV6wcFoGYwxo0rdFHSlz2oUgb5Eyr6MWVZks2BYJwE w4P6rl2cnO X-Google-Smtp-Source: AGHT+IG8uRxxyzrug3ziU1U0GaXYiQte2r1cGKsfHBaoKby5xGiWan7osRBaz+XToC1s8/2YTdaUaw== X-Received: by 2002:a17:907:971e:b0:b73:769d:350d with SMTP id a640c23a62f3a-b767158b537mr4180137366b.22.1764592941514; Mon, 01 Dec 2025 04:42:21 -0800 (PST) Received: from victus-lab ([193.205.81.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b76f59e8612sm1173738266b.52.2025.12.01.04.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Dec 2025 04:42:21 -0800 (PST) From: Yuri Andriaccio To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider Cc: linux-kernel@vger.kernel.org, Luca Abeni , Yuri Andriaccio Subject: [RFC PATCH v4 16/28] sched/rt: Remove old RT_GROUP_SCHED data structures Date: Mon, 1 Dec 2025 13:41:49 +0100 Message-ID: <20251201124205.11169-17-yurand2000@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251201124205.11169-1-yurand2000@gmail.com> References: <20251201124205.11169-1-yurand2000@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: luca abeni Completely remove the old RT_GROUP_SCHED's functions and data structures: - Remove the fields back and my_q from sched_rt_entity. - Remove the rt_bandwidth data structure. - Remove the field rt_bandwidth from task_group. - Remove the rt_bandwidth_enabled function. - Remove the fields rt_queued, rt_throttled, rt_time, rt_runtime, rt_runtime_lock and rt_nr_boosted from rt_rq. All of the removed fields and data are similarly represented in previously added fields in rq, rt_rq, dl_bandwidth and in the dl server themselves. Co-developed-by: Yuri Andriaccio Signed-off-by: Yuri Andriaccio Signed-off-by: luca abeni --- include/linux/sched.h | 3 --- kernel/sched/sched.h | 26 -------------------------- 2 files changed, 29 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 3f1f15b6d2..9ef7797983 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -627,12 +627,9 @@ struct sched_rt_entity { unsigned short on_rq; unsigned short on_list; - struct sched_rt_entity *back; #ifdef CONFIG_RT_GROUP_SCHED /* rq on which this entity is (to be) queued: */ struct rt_rq *rt_rq; - /* rq "owned" by this entity/group: */ - struct rt_rq *my_q; #endif } __randomize_layout; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 334ab6d597..4b65775ada 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -310,15 +310,6 @@ struct rt_prio_array { struct list_head queue[MAX_RT_PRIO]; }; -struct rt_bandwidth { - /* nests inside the rq lock: */ - raw_spinlock_t rt_runtime_lock; - ktime_t rt_period; - u64 rt_runtime; - struct hrtimer rt_period_timer; - unsigned int rt_period_active; -}; - struct dl_bandwidth { raw_spinlock_t dl_runtime_lock; u64 dl_runtime; @@ -510,7 +501,6 @@ struct task_group { struct sched_dl_entity **dl_se; struct rt_rq **rt_rq; - struct rt_bandwidth rt_bandwidth; struct dl_bandwidth dl_bandwidth; #endif @@ -826,11 +816,6 @@ struct scx_rq { }; #endif /* CONFIG_SCHED_CLASS_EXT */ -static inline int rt_bandwidth_enabled(void) -{ - return 0; -} - /* RT IPI pull logic requires IRQ_WORK */ #if defined(CONFIG_IRQ_WORK) && defined(CONFIG_SMP) # define HAVE_RT_PUSH_IPI @@ -848,17 +833,6 @@ struct rt_rq { bool overloaded; struct plist_head pushable_tasks; - int rt_queued; - -#ifdef CONFIG_RT_GROUP_SCHED - int rt_throttled; - u64 rt_time; /* consumed RT time, goes up in update_curr_rt */ - u64 rt_runtime; /* allotted RT time, "slice" from rt_bandwidth, RT shar= ing/balancing */ - /* Nests inside the rq lock: */ - raw_spinlock_t rt_runtime_lock; - - unsigned int rt_nr_boosted; -#endif #ifdef CONFIG_CGROUP_SCHED struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runna= ble entities */ #endif -- 2.51.0