mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h
@ 2025-10-20 22:06 Aditya Gollamudi
  2025-10-20 22:17 ` [PATCH v2] " Aditya Gollamudi
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Gollamudi @ 2025-10-20 22:06 UTC (permalink / raw)
  To: mingo
  Cc: adigollamudi, peterz, juri.lelli, vincent.guittot,
	dietmar.eggemann, rostedt, bsegall, mgorman, vschneid,
	linux-kernel

From: Adi Gollamudi <adigollamudi@gmail.com>

remove use of cpumask ptr initialized at the top of the mm_cid_get() function to nothing.
remove initialization of cpumask ptr in the same function, "cpumask = mm_cidmask(mm);" because
it is not used later.

Signed-off-by: Adi Gollamudi <adigollamudi@gmail.com>
---
 kernel/sched/sched.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index be9745d104f7..d5d943681bf8 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -3710,11 +3710,9 @@ static inline int mm_cid_get(struct rq *rq, struct task_struct *t,
 			     struct mm_struct *mm)
 {
 	struct mm_cid __percpu *pcpu_cid = mm->pcpu_cid;
-	struct cpumask *cpumask;
 	int cid;
 
 	lockdep_assert_rq_held(rq);
-	cpumask = mm_cidmask(mm);
 	cid = __this_cpu_read(pcpu_cid->cid);
 	if (mm_cid_is_valid(cid)) {
 		mm_cid_snapshot_time(rq, mm);
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-21 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-20 22:06 [PATCH] kernel/sched: removed unused *cpumask ptr in kernel/sched/sched.h Aditya Gollamudi
2025-10-20 22:17 ` [PATCH v2] " Aditya Gollamudi
2025-10-21  7:58   ` Valentin Schneider
2025-10-21 11:11     ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®