[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070510200033.GA31048@redhat.com>
Date: Thu, 10 May 2007 22:00:33 +0200
From: Tomas Janousek <tjanouse@...hat.com>
To: Ingo Oeser <ioe-lkml@...eria.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
john stultz <johnstul@...ibm.com>,
linux-kernel@...r.kernel.org, tsmetana@...hat.com, riel@...hat.com
Subject: Re: [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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists