The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] sched/cputime: remove unused vtime_account_kernel
@ 2024-04-11 11:22 Changbin Du
  2024-04-11 12:05 ` duchangbin
  0 siblings, 1 reply; 2+ messages in thread
From: Changbin Du @ 2024-04-11 11:22 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot
  Cc: Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Daniel Bristot de Oliveira, Valentin Schneider, linux-kernel,
	Changbin Du

This removes the vtime_account_kernel() function in generic vtime
accounting. It's never used anymore.

Signed-off-by: Changbin Du <changbin.du@huawei.com>
---
 kernel/sched/cputime.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c
index af7952f12e6c..29320e66abdc 100644
--- a/kernel/sched/cputime.c
+++ b/kernel/sched/cputime.c
@@ -709,18 +709,6 @@ static void __vtime_account_kernel(struct task_struct *tsk,
 		vtime_account_system(tsk, vtime);
 }
 
-void vtime_account_kernel(struct task_struct *tsk)
-{
-	struct vtime *vtime = &tsk->vtime;
-
-	if (!vtime_delta(vtime))
-		return;
-
-	write_seqcount_begin(&vtime->seqcount);
-	__vtime_account_kernel(tsk, vtime);
-	write_seqcount_end(&vtime->seqcount);
-}
-
 void vtime_user_enter(struct task_struct *tsk)
 {
 	struct vtime *vtime = &tsk->vtime;
-- 
2.34.1


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

end of thread, other threads:[~2024-04-11 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11 11:22 [PATCH] sched/cputime: remove unused vtime_account_kernel Changbin Du
2024-04-11 12:05 ` duchangbin

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