History

posix-cpu-timers: Rename thread_group_cputimer() and make it static

thread_group_cputimer() is a complete misnomer. The function does two things: - For arming process wide timers it makes sure that the atomic time storage is up to date. If no cpu timer is armed yet, then the atomic time storage is not updated by the scheduler for performance reasons. In that case a full summing up of all threads needs to be done and the update needs to be enabled. - Samples the current time into the caller supplied storage. Rename it to thread_group_start_cputime(), make it static and fixup the callsite.

Thomas Gleixner committed 7 years ago

Commit c506bef1 parent a3249562 files · +15 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/sched/cputime.h+0−1
@@ -61,7 +61,6 @@ extern void cputime_adjust(struct task_cputime *curr, struct prev_cputime *prev, · 60 unmodified lines
61 * Thread group CPU time accounting.61 * Thread group CPU time accounting.
62 */62 */
63void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);63void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times);
64void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times);
65void thread_group_sample_cputime(struct task_struct *tsk, struct task_cputime *times);64void thread_group_sample_cputime(struct task_struct *tsk, struct task_cputime *times);
66 65
67/*66/*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t