Commit 7f2cbcbc authored by Yi Wang's avatar Yi Wang Committed by Thomas Gleixner

posix-cpu-timers: Fix two trivial comments

Recent changes modified the function arguments of
thread_group_sample_cputime() and task_cputimers_expired(), but forgot to
update the comments. Fix it up.

[ tglx: Changed the argument name of task_cputimers_expired() as the pointer
  	points to an array of samples. ]

Fixes: b7be4ef1 ("posix-cpu-timers: Switch thread group sampling to array")
Fixes: 001f7971 ("posix-cpu-timers: Make expiry checks array based")
Signed-off-by: default avatarYi Wang <wang.yi59@zte.com.cn>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1571643852-21848-1-git-send-email-wang.yi59@zte.com.cn
parent 086ee46b
...@@ -266,7 +266,7 @@ static void update_gt_cputime(struct task_cputime_atomic *cputime_atomic, ...@@ -266,7 +266,7 @@ static void update_gt_cputime(struct task_cputime_atomic *cputime_atomic,
/** /**
* thread_group_sample_cputime - Sample cputime for a given task * thread_group_sample_cputime - Sample cputime for a given task
* @tsk: Task for which cputime needs to be started * @tsk: Task for which cputime needs to be started
* @iimes: Storage for time samples * @samples: Storage for time samples
* *
* Called from sys_getitimer() to calculate the expiry time of an active * Called from sys_getitimer() to calculate the expiry time of an active
* timer. That means group cputime accounting is already active. Called * timer. That means group cputime accounting is already active. Called
...@@ -1038,12 +1038,12 @@ static void posix_cpu_timer_rearm(struct k_itimer *timer) ...@@ -1038,12 +1038,12 @@ static void posix_cpu_timer_rearm(struct k_itimer *timer)
* member of @pct->bases[CLK].nextevt. False otherwise * member of @pct->bases[CLK].nextevt. False otherwise
*/ */
static inline bool static inline bool
task_cputimers_expired(const u64 *sample, struct posix_cputimers *pct) task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct)
{ {
int i; int i;
for (i = 0; i < CPUCLOCK_MAX; i++) { for (i = 0; i < CPUCLOCK_MAX; i++) {
if (sample[i] >= pct->bases[i].nextevt) if (samples[i] >= pct->bases[i].nextevt)
return true; return true;
} }
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment