From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: Fix for 64-bit platforms to i2c-2.8.7
Date: Thu, 19 May 2005 06:25:17 +0000 [thread overview]
Message-ID: <20040924083359.M25375@linux-fr.org> (raw)
In-Reply-To: <4153C035.4020804@penguincomputing.com>
On Thu, 23 Sep 2004 23:35:33 -0700, Philip Pokorny wrote
> I've had problems compiling 2.8.7 on Opteron (x86-64) systems due to
> some assembly code in i2c-algo-biths.c
> (...)
> Seems that we've duplicated some code from the mainline kernel
> (udelay) in the biths implementation. But as with most forks, the mainline
> kernel implementation works on 64-bit but ours doesn't.
> (...)
> In fact, I'm not really sure I see the point of this duplicated code
> at all. It would seem like we should just call the kernels udelay
> in all cases. In fact that's the fallback case in the code if it
> doesn't think it can use the multiply instruction.
We sure don't want duplicate code. I also don't see the point of assembly code
in the i2c drivers. You fixed this specific problem for x86-64, but what about
all other non-i386 architectures? I doubt that the speed improvement is worth
the pain.
Could you possibly propose a patch which gets rid of the assembler code
altogether, and uses the kernel's udelay instead?
Thanks.
--
Jean Delvare
http://khali.linux-fr.org/
prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Fix for 64-bit platforms to i2c-2.8.7 Philip Pokorny
2005-05-19 6:25 ` Jean Delvare [this message]
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=20040924083359.M25375@linux-fr.org \
--to=khali@linux-fr.org \
--cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.