]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARC: unbork FPU save/restore
authorVineet Gupta <vgupta@synopsys.com>
Sat, 27 Sep 2014 07:23:41 +0000 (12:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:29 +0000 (10:10 -0800)
commit 52e9bae93802bd29c33be11e9e758ad7daac805f upstream.

Fixes: 2ab402dfd65d15a4b2 "ARC: make start_thread() out-of-line"
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/processor.h

index 372466b371bf8c855944b2007efaa0ec7ba69fcf..a9cbabe22d99bbcb47c42d4a0b15f88e86f2dfa9 100644 (file)
 #define PAGES_TO_KB(n_pages)   ((n_pages) << (PAGE_SHIFT - 10))
 #define PAGES_TO_MB(n_pages)   (PAGES_TO_KB(n_pages) >> 10)
 
-#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
-/* These DPFP regs need to be saved/restored across ctx-sw */
-struct arc_fpu {
-       struct {
-               unsigned int l, h;
-       } aux_dpfp[2];
-};
-#endif
 
 /*
  ***************************************************************
index 82588f3ba77f6b940fd8aa607af34d049614a993..38175c06f168af95fbea36c241c0e1f4d3a609d0 100644 (file)
 
 #include <asm/ptrace.h>
 
+#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
+/* These DPFP regs need to be saved/restored across ctx-sw */
+struct arc_fpu {
+       struct {
+               unsigned int l, h;
+       } aux_dpfp[2];
+};
+#endif
+
 /* Arch specific stuff which needs to be saved per task.
  * However these items are not so important so as to earn a place in
  * struct thread_info