Skip to contentSkip to conversation

swsusp: move variables where they belong

PATCH Pavel Machek 1 participant 1 message Dec 5, 2002

lore
Share & tools
lore
#0 lore raw

Hi!

swsusp: Move loop variables into assembly, where they are used. Please apply,

Pavel

arch/i386/kernel/suspend.c +0 -7
@@ -125,10 +125,3 @@
 	}
 
 }
-
-#ifdef CONFIG_SOFTWARE_SUSPEND
-/* Local variables for do_magic */
-int loop __nosavedata = 0;
-int loop2 __nosavedata = 0;
-
-#endif
arch/i386/kernel/suspend_asm.S +11 -0
@@ -1,4 +1,7 @@
 .text
+
+/* Originally gcc generated, modified by hand */
+
 #include <linux/linkage.h>
 #include <asm/segment.h>
 #include <asm/page.h>
@@ -78,3 +81,11 @@
 .L1449:
 	popl %ebx
 	ret
+
+       .section .data.nosave
+loop:
+       .quad 0
+loop2:
+       .quad 0
+       .previous
+	
\ No newline at end of file
Signature · 2 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?