From nobody Mon Dec 1 22:00:23 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 088922882D0 for ; Mon, 1 Dec 2025 06:47:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764571632; cv=none; b=KrCNWNcX5twiYBTtJ61H/z4XZU5j+gTmJrdAJjf3rabG8m7YOteex2v6sBm+T2AtigNpNBP7ceuTAbrzXnO5PkKepghe1prLHGwwgQIf+tnl0UdKudL7+LUFI/CxnSq/HlW9rWKWWM5jvog+zytnRPEU2ghmv36bqfmyWrnESVk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764571632; c=relaxed/simple; bh=DfkWEaS9UJl5Sj94t+cKEg8dzhqlJYuTvalTnXM+88M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MLf+rFM+1VxNMeKbKmzxPBSboZm+wwg5EZ2P4W78fpBMFgYS3mhsv48bhW3unlBLBh8eHQqexlfX0di/8L10Nuxy77OXpGqiFkv971XAvOwCnCHK6i4NAWV7fO5My/ed3FfJOLOQ49aZaRaoNLdZSAy2sywF6s/6+SEu5na7YoI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N0yXXjQH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N0yXXjQH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD2BCC4CEF1; Mon, 1 Dec 2025 06:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764571631; bh=DfkWEaS9UJl5Sj94t+cKEg8dzhqlJYuTvalTnXM+88M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N0yXXjQH+ScAGrFdxkiCzHzz190bwXR6Ytwoz6qj82dcOalrnC1vejYCQLHRtS+nB HFR03S6a/pBY7mFaoRIlAHkdYrKf/kXGClFljoWznDgCLlHO0J67mEZJ6ztdyI/GRj pttEMIRBRgPkV68g/kQwtOvWP1VFJore2uW8AKEscVKFhsBDIcBCVjRdpluMejhNX9 Q/dorg6wlHGzs14xLpXbmBawI5cMGmNJ+IoA5W1rNeazhOf4F/otogoPNqZjHJjkSl JibxYJ/s6NGmIW/WAozqf3a9mFwfLD+L9TG7LrxGdt/G7dYYUawbBm5y7yqYF1UHAK d2sCMYl5hBsAg== From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Valentin Schneider , Vincent Guittot , Shrikanth Hegde , Linus Torvalds , Mel Gorman , Steven Rostedt , Thomas Gleixner , Ingo Molnar Subject: [PATCH 3/6] sched/fair: Separate se->vlag from se->vprot Date: Mon, 1 Dec 2025 07:46:44 +0100 Message-ID: <20251201064647.1851919-4-mingo@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251201064647.1851919-1-mingo@kernel.org> References: <20251201064647.1851919-1-mingo@kernel.org> 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" There's no real space concerns here and keeping these fields in a union makes reading (and tracing) the scheduler code harder. Signed-off-by: Ingo Molnar --- include/linux/sched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index e84bc5bce816..667fa08aee75 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -586,7 +586,7 @@ struct sched_entity { u64 sum_exec_runtime; u64 prev_sum_exec_runtime; u64 vruntime; - union { +// union { /* * When !@on_rq this field is vlag. * When cfs_rq->curr =3D=3D se (which implies @on_rq) @@ -594,7 +594,7 @@ struct sched_entity { */ s64 vlag; u64 vprot; - }; +// }; u64 slice; =20 u64 nr_migrations; --=20 2.51.0