From: Pavel Machek <pavel@suse.cz>
To: Hugh Dickins <hugh@veritas.com>
Cc: Andrea Arcangeli <andrea@suse.de>,
rwhron@earthlink.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 1-2-3 GB
Date: Fri, 18 Jan 2002 22:18:53 +0100 [thread overview]
Message-ID: <20020118211851.GB130@elf.ucw.cz> (raw)
In-Reply-To: <20020112125625.E1482@inspiron.school.suse.de> <Pine.LNX.4.21.0201121825200.1105-100000@localhost.localdomain>
In-Reply-To: <Pine.LNX.4.21.0201121825200.1105-100000@localhost.localdomain>
Hi!
> The patch below seems to be enough to convince egcs-2.91.66 and
> gcc-2.95.3 to use a "jb" comparison there. I'm working on PIII,
> prefetchw() just a stub, if that makes any difference.
If this is really gcc bug, would simply making j volatile fix it?
Pavel
> --- 2.4.18pre2aa2/mm/memory.c Sat Jan 12 18:01:36 2002
> +++ linux/mm/memory.c Sat Jan 12 18:09:27 2002
> @@ -106,8 +106,7 @@
>
> static inline void free_one_pgd(pgd_t * dir)
> {
> - int j;
> - pmd_t * pmd;
> + pmd_t * pmd, * md, * emd;
>
> if (pgd_none(*dir))
> return;
> @@ -118,9 +117,9 @@
> }
> pmd = pmd_offset(dir, 0);
> pgd_clear(dir);
> - for (j = 0; j < PTRS_PER_PMD ; j++) {
> - prefetchw(pmd+j+(PREFETCH_STRIDE/16));
> - free_one_pmd(pmd+j);
> + for (md = pmd, emd = pmd + PTRS_PER_PMD; md < emd; md++) {
> + prefetchw(md+(PREFETCH_STRIDE/16));
> + free_one_pmd(md);
> }
> pmd_free(pmd);
> }
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
next prev parent reply other threads:[~2002-01-18 21:33 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-12 5:45 rwhron
2002-01-12 7:32 ` H. Peter Anvin
2002-01-12 13:17 ` Andrea Arcangeli
2002-01-12 17:26 ` Albert D. Cahalan
2002-01-12 17:42 ` Andrea Arcangeli
2002-01-12 18:28 ` Albert D. Cahalan
2002-01-12 19:07 ` BIO Usage Error or Conflicting Designs Andre Hedrick
2002-01-12 20:05 ` Jens Axboe
2002-01-13 1:15 ` Andre Hedrick
2002-01-13 12:59 ` Jens Axboe
2002-01-13 19:59 ` Andre Hedrick
2002-01-14 6:42 ` Jens Axboe
2002-01-12 20:59 ` [PATCH] 1-2-3 GB H. Peter Anvin
2002-01-12 11:56 ` Andrea Arcangeli
2002-01-12 15:50 ` rwhron
2002-01-12 19:22 ` Hugh Dickins
2002-01-12 21:02 ` Andrew Morton
2002-01-13 20:24 ` H. Peter Anvin
2002-01-13 23:11 ` Marvin Justice
2002-01-14 0:03 ` H. Peter Anvin
2002-01-14 0:46 ` Alan Cox
2002-01-14 2:21 ` Rik van Riel
2002-01-18 21:18 ` Pavel Machek [this message]
2002-01-19 0:24 ` Hugh Dickins
2002-01-12 21:41 ` rwhron
2002-01-12 22:34 ` rwhron
2002-01-15 14:07 rwhron
2002-01-15 17:48 ` Dave Jones
2002-01-16 2:12 ` H. Peter Anvin
2002-01-23 3:53 ` rwhron
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=20020118211851.GB130@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=andrea@suse.de \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rwhron@earthlink.net \
/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
all inboxes | Powered by JetHome®