Questions about FPU and NEON on Cortex-A9 with armv7 instructions!

Arnd Bergmann arnd at arndb.de
Wed Jul 28 06:46:02 EDT 2010


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



More information about the linux-arm-kernel mailing list