Re: [PATCH] Introduce boot based time

2007-05-10 Thread Andrew Morton
On Thu, 10 May 2007 19:10:25 +0200 Tomas Janousek <[EMAIL PROTECTED]> wrote: > The commits > 411187fb05cd11676b0979d9fbf3291db69dbce2 (GTOD: persistent clock support) > c1d370e167d66b10bca3b602d3740405469383de (i386: use GTOD persistent clock > support) > changed the monotonic time so that

Re: [PATCH] Introduce boot based time

2007-05-10 Thread Ingo Oeser
Hi John and Tomas, On Thursday 10 May 2007, john stultz wrote: > I'm not sure I follow this. > > total_sleep_time stores seconds. So on 32bit systems that's 130some > years, so it shouldn't be an issue. > > Is the reason you want it to be a ktime is because you want a way to > keep sub-second

Re: [PATCH] Introduce boot based time

2007-05-10 Thread john stultz
On Thu, 2007-05-10 at 21:48 +0200, Ingo Oeser wrote: > Hi Tomas, > > On Thursday 10 May 2007, Tomas Janousek wrote: > > diff --git a/include/linux/time.h b/include/linux/time.h > > index 8997b61..06f3eaf 100644 > > --- a/include/linux/time.h > > +++ b/include/linux/time.h > > @@ -116,6 +116,8 @@ e

Re: [PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
Hi Ingo, On Thu, May 10, 2007 at 09:48:59PM +0200, Ingo Oeser wrote: > > +static unsigned long total_sleep_time; > > Could you make that a ktime_t (or struct ktime)? > There are machines, which sleep more than they are awake. > Just imagine a surveillance camera triggered by door entrance. > >

Re: [PATCH] Introduce boot based time

2007-05-10 Thread Ingo Oeser
Hi Tomas, On Thursday 10 May 2007, Tomas Janousek wrote: > diff --git a/include/linux/time.h b/include/linux/time.h > index 8997b61..06f3eaf 100644 > --- a/include/linux/time.h > +++ b/include/linux/time.h > @@ -116,6 +116,8 @@ extern int do_setitimer(int which, struct itimerval > *value, > exte

Re: [PATCH] Introduce boot based time

2007-05-10 Thread john stultz
On Thu, 2007-05-10 at 19:10 +0200, Tomas Janousek wrote: > The commits > 411187fb05cd11676b0979d9fbf3291db69dbce2 (GTOD: persistent clock support) > c1d370e167d66b10bca3b602d3740405469383de (i386: use GTOD persistent clock > support) > changed the monotonic time so that it no longer jumps a

[PATCH] Introduce boot based time

2007-05-10 Thread Tomas Janousek
The commits 411187fb05cd11676b0979d9fbf3291db69dbce2 (GTOD: persistent clock support) c1d370e167d66b10bca3b602d3740405469383de (i386: use GTOD persistent clock support) changed the monotonic time so that it no longer jumps after resume, but it's not possible to use it for boot time and proc