powerpc/math-emu: Move the flush FPU state function into do_mathemu
authorKevin Hao <haokexin@gmail.com>
Sun, 14 Jul 2013 08:40:06 +0000 (16:40 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:59:06 +0000 (14:59 +1000)
commit6761ee3d7e139ec8728e1515bfc5fdcaf3be317e
tree8e2e5ced53d6e089a1845597a248e82fb5bb3ec6
parent195c4940f7682bdd3f5477e37b7c0183b82b3b71
powerpc/math-emu: Move the flush FPU state function into do_mathemu

By doing this we can make sure that the FPU state is only flushed to
the thread struct when it is really needed.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/traps.c
arch/powerpc/math-emu/math.c