All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Questions about FPU and NEON on Cortex-A9 with armv7 instructions!
Date: Wed, 28 Jul 2010 12:46:02 +0200	[thread overview]
Message-ID: <201007281246.03033.arnd@arndb.de> (raw)
In-Reply-To: <AANLkTinoZ0GT5FFUFPmU5gQK1zVcZKYtSWpHDQ1Y4OXO@mail.gmail.com>

On Wednesday 28 July 2010, David Yang wrote:
> If the other kernel code doesn't save and restore the FPU context,then
> it's risky.
> 
> Can I use FPU just in one C file ?

Usually if you need something like this, you're doing something wrong.
Code that does a lot of computation should go generally live in user
space, not a kernel module, though there are a few exceptions.

Take a look at how drivers/md/raid6sse2.c uses kernel_fpu_begin() to
do this on x86.

	Arnd

      parent reply	other threads:[~2010-07-28 10:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28  6:19 Questions about FPU and NEON on Cortex-A9 with armv7 instructions! David Yang
2010-07-28  8:57 ` Martin Guy
2010-07-28  9:16   ` David Yang
2010-07-28  9:31     ` Gilles Chanteperdrix
2010-07-28 10:06       ` David Yang
2010-07-28 10:45         ` Gilles Chanteperdrix
2010-07-28 10:46         ` Arnd Bergmann [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=201007281246.03033.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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.