lkml.org 
[lkml]   [2007]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Introduce boot based time
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.
>
> Yes, these things might run Linux (e.g. on "cris" architecture).
>
> Or your VCR.
> Yes, these devices might sleep more than they are awake,
> if you are not a TV junkie :-)

The value is in seconds. It can hold up to 136 years of sleep. I'd rather
spend the money on beer than on a VCR that I'm gonna suspend for 137 years :)

(or do we have a 16-bit long anywhere?)

Regards,
--
TJ. (Brno, CZ), BaseOS, Red Hat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-05-10 22:03    [W:0.095 / U:1.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site