From: Atsushi Nemoto Date: Mon, 16 Apr 2007 14:19:44 +0000 (+0900) Subject: [MIPS] Retry {save,restore}_fp_context if failed in atomic context. X-Git-Tag: v2.6.21~37^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faea62346444ce5b1dba8fb5291d95b676522c42;p=pandora-kernel.git [MIPS] Retry {save,restore}_fp_context if failed in atomic context. The save_fp_context()/restore_fp_context() might sleep on accessing user stack and therefore might lose FPU ownership in middle of them. If these function failed due to "in_atomic" test in do_page_fault, touch the sigcontext area in non-atomic context and retry these save/restore operation. This is a replacement of a (broken) fix which was titled "Allow CpU exception in kernel partially". Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed