From: yu liu Date: Tue, 14 Jun 2011 23:34:25 +0000 (-0500) Subject: powerpc/e500: Save SPEFCSR in flush_spe_to_thread() X-Git-Tag: v3.1-rc1~264^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=685659ee70db0bac47ffd619c726cf600e504fd7;p=pandora-kernel.git powerpc/e500: Save SPEFCSR in flush_spe_to_thread() giveup_spe() saves the SPE state which is protected by MSR[SPE]. However, modifying SPEFSCR does not trap when MSR[SPE]=0. And since SPEFSCR is already saved/restored in _switch(), not all the callers want to save SPEFSCR again. Thus, saving SPEFSCR should not belong to giveup_spe(). This patch moves SPEFSCR saving to flush_spe_to_thread(), and cleans up the caller that needs to save SPEFSCR accordingly. Signed-off-by: Liu Yu Acked-by: Kumar Gala Signed-off-by: Scott Wood Signed-off-by: Alexander Graf --- Reading git-diff-tree failed