From: Oleg Drokin <green@namesys.com>
To: Tim Schmielau <tim@physik3.uni-rostock.de>
Cc: lkml <linux-kernel@vger.kernel.org>,
torvalds@transmeta.com, jdike@karaya.com
Subject: use 64 bit jiffies broke HZ=100 case (and fix)
Date: Wed, 5 Feb 2003 14:42:06 +0300 [thread overview]
Message-ID: <20030205144206.A25320@namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0302022347440.24857-100000@gans.physik3.uni-rostock.de>
Hello!
On Sun, Feb 02, 2003 at 11:55:40PM +0100, Tim Schmielau wrote:
> Just a note that I have rediffed for 2.5.55 the patches that use the 64
> bit jiffies value to avoid uptime and process start time wrap after
> 49.5 days. I will push them Linus-wards when he's back.
> They can be retrieved from
> http://www.physik3.uni-rostock.de/tim/kernel/2.5/jiffies64-33a.patch.gz
> (1/3: infrastructure)
> http://www.physik3.uni-rostock.de/tim/kernel/2.5/jiffies64-33b.patch.gz
> (2/3: fix uptime wrap)
> http://www.physik3.uni-rostock.de/tim/kernel/2.5/jiffies64-33c.patch.gz
> (3/3: 64 bit process start time)
Unfortunatelly your changes in fs/proc/proc_misc.c broke every arch that
still uses HZ=100 (e.g. UML), because there is no "times" field in task
struct.
See this part:
+ {
+ unsigned long idle = init_task.times.tms_utime
+ + init_task.times.tms_stime;
In order to get UML to compile again (and pretty much any other HZ=100 arch)
I need to apply this patch below:
===== fs/proc/proc_misc.c 1.63 vs edited =====
--- 1.63/fs/proc/proc_misc.c Tue Nov 12 12:37:55 2002
+++ edited/fs/proc/proc_misc.c Wed Feb 5 14:28:50 2003
@@ -121,8 +121,7 @@
}
#else
{
- unsigned long idle = init_task.times.tms_utime
- + init_task.times.tms_stime;
+ unsigned long idle = init_task.utime + init_task.stime;
len = sprintf(page,"%lu.%02lu %lu.%02lu\n",
(unsigned long) uptime,
Bye,
Oleg
next prev parent reply other threads:[~2003-02-05 11:32 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-02 22:55 [PATCH *] use 64 bit jiffies Tim Schmielau
2003-02-03 6:42 ` Denis Vlasenko
2003-02-03 8:28 ` Matti Aarnio
2003-02-03 8:47 ` Tim Schmielau
2003-02-03 8:55 ` Matti Aarnio
2003-02-04 13:00 ` Tim Schmielau
2003-02-04 6:41 ` Denis Vlasenko
2003-02-04 8:27 ` Robert de Bath
2003-02-04 8:41 ` Denis Vlasenko
2003-02-04 9:29 ` Jörn Engel
2003-02-04 13:04 ` Tim Schmielau
2003-02-17 13:55 ` Jörn Engel
2003-02-17 14:02 ` Tim Schmielau
2003-02-17 14:15 ` Matti Aarnio
2003-02-17 14:23 ` Tim Schmielau
2003-02-04 17:37 ` Randy.Dunlap
2003-02-16 1:37 ` [PATCH] make jiffies wrap 5 min after boot Tim Schmielau
2003-02-16 2:08 ` Anton Blanchard
2003-02-16 2:43 ` William Lee Irwin III
2003-02-16 2:50 ` Michael Vergoz
2003-02-16 6:37 ` Robert Love
2003-02-16 7:16 ` Muli Ben-Yehuda
2003-02-16 11:50 ` Falk Hueffner
2003-02-16 12:04 ` William Lee Irwin III
2003-02-11 20:50 ` [patch] jiffies wrap fixes for 2.5.60 Tim Schmielau
2003-02-11 21:31 ` Roger Larsson
2003-02-12 12:09 ` Tim Schmielau
2003-02-05 11:42 ` Oleg Drokin [this message]
2003-02-05 12:22 ` use 64 bit jiffies broke HZ=100 case (and fix) Tim Schmielau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030205144206.A25320@namesys.com \
--to=green@namesys.com \
--cc=jdike@karaya.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tim@physik3.uni-rostock.de \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox