From nobody Mon Apr 6 20:03:35 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7A5237C93E; Wed, 18 Mar 2026 08:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773821323; cv=none; b=PMlRYajqB4KqxqLv7Tdbj9SwwamJhipuue/ahejGTRAhT0DaIkRo0r9f7i03tL+wCLnwq1F0l28SrL5JGJd/bIxpA6ieJjinVoYtRhgdoheGN1aO9nUsXwazXynOKNEomYP2MnSf47IiicnLqz+nsBqZ1nbtayxBTCelLjKC9VE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773821323; c=relaxed/simple; bh=te9G7NX5cvjs4jKOSRbf9RR1pcg1I0dQ8ol9GyDaPCw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fluTCAdmyyzI2MrvZpDvhRO9JsqyZZV6qABzXft5ZxYNxNODJsF4tmSUF6a/l3PiTmPvjUgX4lBndD4IXOQ1RQEqlpkHklIzPGZsi+jRllg5RxlB8dXHqrRtN97pPq6tYg4fswUB2qx+b745AZqAFbHUO4IVHw1mSIG8/lFhjh8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Eo7xXqYh; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SJNqayvg; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Eo7xXqYh"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SJNqayvg" Date: Wed, 18 Mar 2026 08:08:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773821320; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DBQqCUZvuO9H0X78slp+DGAcFan+bij96a+SR1p3hoI=; b=Eo7xXqYhxtXvmTUSWxbUlaSMdPbtwsxZUwgVHoDT6BV2w3V6a/Dqne+SUeL5ILCrPBM+1R Mm1kmhpq0Q2UQN9rR2sSHa68VwB1otYHRK9iO4fBgtrLQvBWhRMTYXgboyVeHsdAAIVG/m FjOqRtesgz8cNP/t7ygVM3I0z90YXW58qx15RVMBaY6jKdsfWtVsGNLbB1l+oI8LFEyGZs AOZ4O5G30zaRAJQjy1FWtVUWvc+7lFN96b7UtzSzCHGLYj79W7MIFyQjUI12KO6koSh3Pc KEOBfS+6SyOiTlbXJFExoryHHZkdBOu3D7YP9an8XOZsOZOrKSuEUpFoyG2qtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773821320; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DBQqCUZvuO9H0X78slp+DGAcFan+bij96a+SR1p3hoI=; b=SJNqayvgjrD7q0zP3x7RWKlgRwCCyNhHwO4ZDsiNsaxXSfQlzi9V7mqnrYywIvwI5S8u1i SB0YisghrA2nUxAQ== From: "tip-bot2 for K Prateek Nayak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/topology: Remove sched_domain_shared allocation with sd_data Cc: K Prateek Nayak , "Peter Zijlstra (Intel)" , Valentin Schneider , Dietmar Eggemann , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260312044434.1974-6-kprateek.nayak@amd.com> References: <20260312044434.1974-6-kprateek.nayak@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177382131940.1647592.5441983347642128208.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: 10febd397591d93f42adb743c2c664041e7f1bcb Gitweb: https://git.kernel.org/tip/10febd397591d93f42adb743c2c664041= e7f1bcb Author: K Prateek Nayak AuthorDate: Thu, 12 Mar 2026 04:44:30=20 Committer: Peter Zijlstra CommitterDate: Wed, 18 Mar 2026 09:06:49 +01:00 sched/topology: Remove sched_domain_shared allocation with sd_data Now that "sd->shared" assignments are using the sched_domain_shared objects allocated with s_data, remove the sd_data based allocations. Signed-off-by: K Prateek Nayak Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Valentin Schneider Reviewed-by: Dietmar Eggemann Tested-by: Dietmar Eggemann Link: https://patch.msgid.link/20260312044434.1974-6-kprateek.nayak@amd.com --- include/linux/sched/topology.h | 1 - kernel/sched/topology.c | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index a1e1032..51c2958 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -172,7 +172,6 @@ typedef int (*sched_domain_flags_f)(void); =20 struct sd_data { struct sched_domain *__percpu *sd; - struct sched_domain_shared *__percpu *sds; struct sched_group *__percpu *sg; struct sched_group_capacity *__percpu *sgc; }; diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index b19d84f..4315059 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1609,9 +1609,6 @@ static void claim_allocations(int cpu, struct s_data = *d) WARN_ON_ONCE(*per_cpu_ptr(sdd->sd, cpu) !=3D sd); *per_cpu_ptr(sdd->sd, cpu) =3D NULL; =20 - if (atomic_read(&(*per_cpu_ptr(sdd->sds, cpu))->ref)) - *per_cpu_ptr(sdd->sds, cpu) =3D NULL; - if (atomic_read(&(*per_cpu_ptr(sdd->sg, cpu))->ref)) *per_cpu_ptr(sdd->sg, cpu) =3D NULL; =20 @@ -2390,10 +2387,6 @@ static int __sdt_alloc(const struct cpumask *cpu_map) if (!sdd->sd) return -ENOMEM; =20 - sdd->sds =3D alloc_percpu(struct sched_domain_shared *); - if (!sdd->sds) - return -ENOMEM; - sdd->sg =3D alloc_percpu(struct sched_group *); if (!sdd->sg) return -ENOMEM; @@ -2404,7 +2397,6 @@ static int __sdt_alloc(const struct cpumask *cpu_map) =20 for_each_cpu(j, cpu_map) { struct sched_domain *sd; - struct sched_domain_shared *sds; struct sched_group *sg; struct sched_group_capacity *sgc; =20 @@ -2415,13 +2407,6 @@ static int __sdt_alloc(const struct cpumask *cpu_map) =20 *per_cpu_ptr(sdd->sd, j) =3D sd; =20 - sds =3D kzalloc_node(sizeof(struct sched_domain_shared), - GFP_KERNEL, cpu_to_node(j)); - if (!sds) - return -ENOMEM; - - *per_cpu_ptr(sdd->sds, j) =3D sds; - sg =3D kzalloc_node(sizeof(struct sched_group) + cpumask_size(), GFP_KERNEL, cpu_to_node(j)); if (!sg) @@ -2463,8 +2448,6 @@ static void __sdt_free(const struct cpumask *cpu_map) kfree(*per_cpu_ptr(sdd->sd, j)); } =20 - if (sdd->sds) - kfree(*per_cpu_ptr(sdd->sds, j)); if (sdd->sg) kfree(*per_cpu_ptr(sdd->sg, j)); if (sdd->sgc) @@ -2472,8 +2455,6 @@ static void __sdt_free(const struct cpumask *cpu_map) } free_percpu(sdd->sd); sdd->sd =3D NULL; - free_percpu(sdd->sds); - sdd->sds =3D NULL; free_percpu(sdd->sg); sdd->sg =3D NULL; free_percpu(sdd->sgc);