lkml.org 
[lkml]   [2008]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2.6.25-rc7 resubmit] Fix itimer/many thread hang.
    On Fri, 28 Mar 2008 15:46:40 -0700
    Frank Mayhar <fmayhar@google.com> wrote:

    > asmlinkage long sys_times(struct tms __user * tbuf)
    > {
    > + struct thread_group_cputime thread_group_times;
    > +
    > /*
    > * In the SMP world we might just be unlucky and have one of
    > * the times increment as we use it. Since the value is an
    > @@ -873,19 +875,28 @@ asmlinkage long sys_times(struct tms __user * tbuf)
    > if (tbuf) {
    > struct tms tmp;
    > struct task_struct *tsk = current;
    > - struct task_struct *t;
    > cputime_t utime, stime, cutime, cstime;
    >
    > spin_lock_irq(&tsk->sighand->siglock);
    > - utime = tsk->signal->utime;
    > - stime = tsk->signal->stime;
    > - t = tsk;
    > - do {
    > - utime = cputime_add(utime, t->utime);
    > - stime = cputime_add(stime, t->stime);
    > - t = next_thread(t);
    > - } while (t != tsk);
    > -
    > + /*
    > + * If a POSIX interval timer is running use the process-wide
    > + * fields, else fall back to brute force.
    > + */
    > + if (sig->thread_group_times) {

    kernel/sys.c: In function 'sys_times':
    kernel/sys.c:885: error: 'sig' undeclared (first use in this function)


    \
     
     \ /
      Last update: 2008-04-01 20:49    [W:0.025 / U:121.652 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site