aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-08-21 21:08:51 +0200
committerThomas Gleixner <tglx@linutronix.de>2019-08-28 11:50:26 +0200
commit19298fbf453c90a6cf72288155f80c6f55e9139d (patch)
treec1c35ecaa0f7112b18ab202889d56a9f358e24c9 /include/linux/sched
parentposix-cpu-timers: Use common permission check in posix_cpu_timer_create() (diff)
downloadlinux-dev-19298fbf453c90a6cf72288155f80c6f55e9139d.tar.xz
linux-dev-19298fbf453c90a6cf72288155f80c6f55e9139d.zip
posix-cpu-timers: Provide quick sample function for itimer
get_itimer() needs a sample of the current thread group cputime. It invokes thread_group_cputimer() - which is a misnomer. That function also starts eventually the group cputime accouting which is bogus because the accounting is already active when a timer is armed. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lkml.kernel.org/r/20190821192919.599658199@linutronix.de
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/cputime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/cputime.h b/include/linux/sched/cputime.h
index 53f883f5a2fd..6de7b384d2be 100644
--- a/include/linux/sched/cputime.h
+++ b/include/linux/sched/cputime.h
@@ -62,7 +62,7 @@ extern void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev,
*/
void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times);
-
+void thread_group_sample_cputime(struct task_struct *tsk, struct task_cputime *times);
/*
* The following are functions that support scheduler-internal time accounting.