From: Andrew Morton <akpm@osdl.org>
To: "Miguel Ojeda" <maxextreme@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.18 real-V5] drivers: add lcd display support
Date: Wed, 27 Sep 2006 15:42:08 -0700 [thread overview]
Message-ID: <20060927154208.149069e3.akpm@osdl.org> (raw)
In-Reply-To: <653402b90609271358m58950e96k99b2314f9732b5ef@mail.gmail.com>
On Wed, 27 Sep 2006 20:58:24 +0000
"Miguel Ojeda" <maxextreme@gmail.com> wrote:
> On 9/26/06, Andrew Morton <akpm@osdl.org> wrote:
> > It's also probably-incorrect on big-endian CPUs.
> > Perhaps you should not
> > use bitops at all for this driver, use open-coded |
> > and &/~ instead?
>
> Uhm, someone told me that they shouldn't be used because the kernel
> has generic functions for that.
You can't believe everything you read on the internet ;)
set_bit() and friends are a) atomic wrt other CPUs on SMP and b) only to be
performed on unsigned longs.
> I researched the kernel sources, and looking at bitops.h I found
> setbit(), so I tried to use it in the driver, althought I prefer
> standard |= and &=.
Those are the appropriate operations to use in this driver.
next prev parent reply other threads:[~2006-09-27 22:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-22 20:03 Miguel Ojeda Sandonis
2006-09-26 19:08 ` Andrew Morton
2006-09-27 20:58 ` Miguel Ojeda
2006-09-27 22:42 ` Andrew Morton [this message]
2006-09-28 19:20 ` Miguel Ojeda
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=20060927154208.149069e3.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxextreme@gmail.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
all inboxes | Powered by JetHome®