Re: struct timehands: th_generation field

2015-07-24 Thread deco33000 Jog
___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: struct timehands: th_generation field

2015-07-24 Thread deco33000
OK. I read the document and understood it I guess. Very interesting, and well engineered. On x86/i386/amd64, could not all this be replaced by a simple call to apic timer ? We would get the timestamp, we can even store it, make calculation on top of it. My jugement may miss something important

Re: struct timehands: th_generation field

2015-07-24 Thread Adrian Chadd
accessing hardware isn't free. Locking also isn't free. That's why there's this mechanism. -adrian On 24 July 2015 at 08:58, wrote: > > OK. > > I read the document and understood it I guess. > Very interesting, and well engineered. > > On x86/i386/amd64, could not all this be replaced by a s

Re: struct timehands: th_generation field

2015-07-23 Thread deco33000
___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: struct timehands: th_generation field

2015-07-23 Thread Ian Lepore
On Thu, 2015-07-23 at 10:59 -0400, Brandon Allbery wrote: > On Thu, Jul 23, 2015 at 10:38 AM, wrote: > > > Is the maximum value for th_generation equal to 10 ? > > http://fxr.watson.org/fxr/source/kern/kern_tc.c?v=FREEBSD10#L77 > > > > I don't think those relate to generations. Generations chang

Re: struct timehands: th_generation field

2015-07-23 Thread Brandon Allbery
On Thu, Jul 23, 2015 at 10:38 AM, wrote: > Is the maximum value for th_generation equal to 10 ? > http://fxr.watson.org/fxr/source/kern/kern_tc.c?v=FREEBSD10#L77 > I don't think those relate to generations. Generations change on every clock tick; the multiple timehands structs relate to forcibly

struct timehands: th_generation field

2015-07-23 Thread deco33000
Hi, Currently I read more about timers and clock. I am struggling on one field of a struct : http://fxr.watson.org/fxr/source/kern/kern_tc.c?v=FREEBSD10#L63 I would like to understand what th_generation means please. Thanks a lot --  Jog ___ freebsd

Re: struct timehands: th_generation field

2015-07-23 Thread Brandon Allbery
On Thu, Jul 23, 2015 at 9:43 AM, wrote: > I am struggling on one field of a struct : > http://fxr.watson.org/fxr/source/kern/kern_tc.c?v=FREEBSD10#L63 > I would like to understand what th_generation means please. > Seems to me you get a clue from: ( http://fxr.watson.org/fxr/source/kern/kern_tc.