From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jean-Denis Boyer <jdboyer@mediatrix.com>
Cc: "'Troy Benjegerdes'" <hozer@drgw.net>,
<linuxppc-embedded@lists.linuxppc.org>, <paulus@samba.org>,
Gabriel Paubert <paubert@iram.es>
Subject: RE: Bogomips and loops_per_jiffy
Date: Wed, 8 May 2002 19:43:02 +0200 [thread overview]
Message-ID: <20020508174302.29360@smtp.wanadoo.fr> (raw)
In-Reply-To: <F1BED55F35F4D3118C0F00E0295CFF4DFFA000@mail.mediatrix.com>
[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]
Hi Paul & Gabriel !
We indeed have some weird stuff mixing signed & unsigned in the
arch/ppc/kernel/time.c code. The patch enclosed, from Jean-Denis
Boyer, seems the right fix, except for one thing: I'd rather
change the test from >= to > (which in the old could would mean
changing the while (... < 0 to <= 0) as I see no reason to trigger
a new decrementer interrupt in ... 0 ticks !
Can you confirm it's ok to push ?
Regards,
Ben.
>
>Troy,
>with the patch, now, it completely hangs.
>The reason is that in timer_interrupt()
>
> while ((next_dec = tb_ticks_per_jiffy - tb_delta(&jiffy_stamp)) < 0)
>{
>
>Now that next_dec is unsigned, this condition is always false.
>
>Here is another patch I suggest to replace yours.
>Its in attachement to this email.
>I tested it, and it seems OK.
>
>I did not include your modification made to the type of local variables in
>function do_settimeofday().
>I do not see how it is related to our problem.
>
>
>--------------------------------------------
> Jean-Denis Boyer, B.Eng., System Architect
> Mediatrix Telecom Inc.
> 4229 Garlock Street
> Sherbrooke (Québec)
> J1L 2C8 CANADA
> (819)829-8749 x241
>--------------------------------------------
>
[-- Attachment #2: patch.time.2 --]
[-- Type: application/binary, Size: 1076 bytes --]
next prev parent reply other threads:[~2002-05-08 17:43 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-08 16:53 Bogomips and loops_per_jiffy Jean-Denis Boyer
2002-05-08 17:43 ` Benjamin Herrenschmidt [this message]
2002-05-08 22:13 ` Gabriel Paubert
2002-05-09 15:08 ` Troy Benjegerdes
2002-05-09 16:16 ` Gabriel Paubert
2002-05-08 18:06 ` Troy Benjegerdes
-- strict thread matches above, loose matches on Subject: below --
2002-05-10 14:54 Jean-Denis Boyer
2002-05-10 20:15 ` Gabriel Paubert
2002-05-10 21:16 ` Benjamin Herrenschmidt
2002-05-11 2:08 ` Gabriel Paubert
2002-05-10 14:46 Jean-Denis Boyer
2002-05-10 14:15 Petersen, David (MED, GEMS-IT)
2002-05-10 14:10 Jean-Denis Boyer
2002-05-10 14:23 ` Allen Curtis
2002-05-10 15:06 ` Jerry Van Baren
2002-05-10 14:27 ` Gabriel Paubert
2002-05-10 14:29 ` Gabriel Paubert
2002-05-10 14:39 ` Allen Curtis
2002-05-08 18:30 Jean-Denis Boyer
2002-05-06 21:17 Jean-Denis Boyer
2002-05-08 0:48 ` Troy Benjegerdes
2002-04-22 15:57 Jean-Denis Boyer
2002-04-19 11:57 Jim Thompson
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=20020508174302.29360@smtp.wanadoo.fr \
--to=benh@kernel.crashing.org \
--cc=hozer@drgw.net \
--cc=jdboyer@mediatrix.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=paubert@iram.es \
--cc=paulus@samba.org \
/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;
as well as URLs for NNTP newsgroup(s).