On Fri, 2006-01-20 at 08:33 -0800, George Anzinger wrote:
> > a1f15939b7af18c5abcd4810ccd512467c77a6b1
> > diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
> > index 28e72fd..e2fa4c0 100644
> > --- a/kernel/posix-timers.c
> > +++ b/kernel/posix-timers.c
> > @@ -724,8 +724,13 @@ common_timer_set(struct k_itimer *timr,
> > timr->it.real.interval = timespec_to_ktime(new_setting->it_interval);
> >
> > /* SIGEV_NONE timers are not queued ! See common_timer_get */
> > - if (((timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE))
> > + if (((timr->it_sigev_notify & ~SIGEV_THREAD_ID) == SIGEV_NONE)) {
> > + /* Setup correct expiry time for relative timers */
> > + if (mode == HRTIMER_REL)
> > + timer->expires = ktime_add(timer-expires,
> > + timer->base->get_time());
> This is only part of the problem. When the user does a timer_gettime() the
> expiry time is taken from the hrtimer field and NOT the posix-timer part.
> Somewhere this value needs to be copied to the hrtimer sub structure.
Well timer->expires is the hrtimer struct itself.
tglx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]