lkml.org 
[lkml]   [2019]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V2 28/38] posix-cpu-timers: Restructure expiry array
On Wed, Aug 21, 2019 at 09:09:15PM +0200, Thomas Gleixner wrote:
> @@ -884,7 +888,7 @@ static void check_process_timers(struct
> struct list_head *firing)
> {
> struct signal_struct *const sig = tsk->signal;
> - struct list_head *timers = sig->posix_cputimers.cpu_timers;
> + struct posix_cputimer_base *base = sig->posix_cputimers.bases;
> u64 utime, ptime, virt_expires, prof_expires;
> u64 sum_sched_runtime, sched_expires;
> struct task_cputime cputime;
> @@ -912,9 +916,12 @@ static void check_process_timers(struct
> ptime = utime + cputime.stime;
> sum_sched_runtime = cputime.sum_exec_runtime;
>
> - prof_expires = check_timers_list(timers, firing, ptime);
> - virt_expires = check_timers_list(++timers, firing, utime);
> - sched_expires = check_timers_list(++timers, firing, sum_sched_runtime);
> + prof_expires = check_timers_list(&base[CPUCLOCK_PROF].cpu_timers,
> + firing, ptime);
> + virt_expires = check_timers_list(&base[CPUCLOCK_VIRT].cpu_timers,
> + firing, utime);
> + sched_expires = check_timers_list(&base[CLPCLOCK_SCHED].cpu_timers,

^^
0-day bot should have warned by now.

\
 
 \ /
  Last update: 2019-08-26 23:07    [W:0.302 / U:8.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site