From: Huacai Chen Date: Mon, 11 Aug 2014 09:10:38 +0000 (+0800) Subject: MIPS: Loongson: Fix COP2 usage for preemptible kernel X-Git-Tag: fixes-for-v3.18-merge-window~106^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ff1740fa48c277628181a047177e0a53f09f682;p=pandora-kernel.git MIPS: Loongson: Fix COP2 usage for preemptible kernel In preemptible kernel, only TIF_USEDFPU flag is reliable to distinguish whether _init_fpu()/_restore_fp() is needed. Because the value of the CP0_Status.CU1 isn't changed during preemption. V2: Fix coding style. Signed-off-by: Huacai Chen Cc: John Crispin Cc: Steven J. Hill Cc: Aurelien Jarno Cc: linux-mips@linux-mips.org Cc: Fuxin Zhang Cc: Zhangjin Wu Patchwork: https://patchwork.linux-mips.org/patch/7515/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed