From: Paul Mackerras Date: Wed, 30 Nov 2005 02:20:54 +0000 (+1100) Subject: powerpc: Fix bug causing FP registers corruption on UP + preempt X-Git-Tag: v2.6.15-rc4~4^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48abec07cf8063184d397560a6a5f27eaf9caddf;p=pandora-kernel.git powerpc: Fix bug causing FP registers corruption on UP + preempt This fixes a bug noticed by Paolo Galtieri and fixed for ARCH=ppc in the previous commit (ppc: fix floating point register corruption). This fixes the arch/powerpc code by adding preempt_disable/enable, and also cleans it up a bit by pulling out the code that discards any lazily-switched CPU register state into a new function, rather than having that code repeated in three places. Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed