lkml.org 
[lkml]   [1999]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: patch for /proc/uptime against 2.2.2
On 1999-03-18 at 08:39:45, Ph. Marek wrote:
> Below is a patch to let /proc/uptime have the mtime of the last boot.
> /proc/uptime gets a new field, which displays the time spent in suspended
> mode (apm).
>
> currently this patch is for x86 only.
>
> this is my first kernel-patch; please don't spam me. useful comments
> are welcome.

OK. :) So, I'd say don't do it this way. First, think about how it
should like on SMP, with 2, 4 or more processors. Hint: don't look at
the code, it's broken. On SMP you can't determine how much the machine
is idling since it appears to be never idle according to /proc/uptime.

--
Janos - Don't worry, my address is real. I'm just bored of spam.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.047 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site