Skip to content

Commit 7f2cbcb

Browse files
Yi WangKAGA-KOKO
authored andcommitted
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: b7be4ef ("posix-cpu-timers: Switch thread group sampling to array") Fixes: 001f797 ("posix-cpu-timers: Make expiry checks array based") Signed-off-by: Yi Wang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 086ee46 commit 7f2cbcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/time/posix-cpu-timers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void update_gt_cputime(struct task_cputime_atomic *cputime_atomic,
266266
/**
267267
* thread_group_sample_cputime - Sample cputime for a given task
268268
* @tsk: Task for which cputime needs to be started
269-
* @iimes: Storage for time samples
269+
* @samples: Storage for time samples
270270
*
271271
* Called from sys_getitimer() to calculate the expiry time of an active
272272
* timer. That means group cputime accounting is already active. Called
@@ -1038,12 +1038,12 @@ static void posix_cpu_timer_rearm(struct k_itimer *timer)
10381038
* member of @pct->bases[CLK].nextevt. False otherwise
10391039
*/
10401040
static inline bool
1041-
task_cputimers_expired(const u64 *sample, struct posix_cputimers *pct)
1041+
task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct)
10421042
{
10431043
int i;
10441044

10451045
for (i = 0; i < CPUCLOCK_MAX; i++) {
1046-
if (sample[i] >= pct->bases[i].nextevt)
1046+
if (samples[i] >= pct->bases[i].nextevt)
10471047
return true;
10481048
}
10491049
return false;

0 commit comments

Comments
 (0)