Re: [PATCH] Introduce boot based time

Tomas Janousek
2007-05-10T20:00:55Z

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