From: Linus Torvalds Date: Mon, 20 Feb 2012 18:24:09 +0000 (-0800) Subject: i387: fix up some fpu_counter confusion X-Git-Tag: v3.3-rc5~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea20ca3f3181fc36788a15bc65d1062b96a0a6c;p=pandora-kernel.git i387: fix up some fpu_counter confusion This makes sure we clear the FPU usage counter for newly created tasks, just so that we start off in a known state (for example, don't try to preload the FPU state on the first task switch etc). It also fixes a thinko in when we increment the fpu_counter at task switch time, introduced by commit 34ddc81a230b ("i387: re-introduce FPU state preloading at context switch time"). We should increment the *new* task fpu_counter, not the old task, and only if we decide to use that state (whether lazily or preloaded). Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed