public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: "Tvrtko A. Uršulin" <tvrtko@croadria.com>,
	"Tim Schmielau" <tim@physik3.uni-rostock.de>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: 2.4.23-ck1
Date: Fri, 5 Dec 2003 01:08:15 +1100	[thread overview]
Message-ID: <200312050108.15839.kernel@kolivas.org> (raw)
In-Reply-To: <200312041436.57450.tvrtko@croadria.com>

[-- Attachment #1: Type: text/plain, Size: 626 bytes --]

On Fri, 5 Dec 2003 00:36, Tvrtko A. Uršulin wrote:
> On Thursday 04 December 2003 14:31, Tim Schmielau wrote:
> > Warning: totally untested. Pretty much obvious, however.
>
> oxygene:/usr/src/linux-2.4.23-ck1 # patch --dry-run
> <../patches/2.4.23-ck1-stat-fix.patch -p1 --global-reject=bla
> patching file fs/proc/proc_misc.c
> Hunk #1 FAILED at 422.
> Hunk #2 FAILED at 460.
> 2 out of 2 hunks FAILED -- saving rejects to file fs/proc/proc_misc.c.rej

Probably just a whitespace problem. Try this one. Please tell me if it works; 
I just made this based on what Tim sent (thanks muchly by the way Tim!)

Con

[-- Attachment #2: patch-2.4.23-ck1-fix1 --]
[-- Type: text/x-diff, Size: 867 bytes --]

diff -Naurp linux-2.4.23-ck1/fs/proc/proc_misc.c linux-2.4.23-ck1-fix1/fs/proc/proc_misc.c
--- linux-2.4.23-ck1/fs/proc/proc_misc.c	2003-12-02 23:17:28.000000000 +1100
+++ linux-2.4.23-ck1-fix1/fs/proc/proc_misc.c	2003-12-05 01:06:11.585672996 +1100
@@ -422,7 +422,7 @@ static int kstat_read_proc(char *page, c
 			(unsigned long long) jiffies_64_to_clock_t(user),
 			(unsigned long long) jiffies_64_to_clock_t(nice),
 			(unsigned long long) jiffies_64_to_clock_t(system),
-			(unsigned long long) jiffies_64_to_clock_t(jif - user - nice - system));
+			(unsigned long long) jif - jiffies_64_to_clock_t(user + nice + system));
 	}
 	proc_sprintf(page, &off, &len,
 		"page %u %u\n"
@@ -460,7 +460,7 @@ static int kstat_read_proc(char *page, c
 		}
 	}
 
-	do_div(jif, HZ);
+	do_div(jif, USER_HZ);
 	proc_sprintf(page, &off, &len,
 		"\nctxt %lu\n"
 		"btime %lu\n"

  reply	other threads:[~2003-12-04 14:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-03 15:28 2.4.23-ck1 Con Kolivas
2003-12-03 17:24 ` 2.4.23-ck1 Norberto Bensa
2003-12-03 17:46   ` 2.4.23-ck1 Marius Ascheberg
2003-12-03 19:01     ` 2.4.23-ck1 wwp
2003-12-03 19:15     ` 2.4.23-ck1 Josh McKinney
2003-12-03 22:26   ` 2.4.23-ck1 Con Kolivas
2003-12-04 10:43 ` 2.4.23-ck1 Tvrtko A. Uršulin
2003-12-04 12:21   ` 2.4.23-ck1 Con Kolivas
2003-12-04 13:31     ` 2.4.23-ck1 Tim Schmielau
2003-12-04 13:36       ` 2.4.23-ck1 Tvrtko A. Uršulin
2003-12-04 14:08         ` Con Kolivas [this message]
2003-12-04 14:37           ` 2.4.23-ck1 Guillermo Menguez Alvarez

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=200312050108.15839.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tim@physik3.uni-rostock.de \
    --cc=tvrtko@croadria.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