Skip to contentSkip to conversation

remove barrier() in software_resume()

PATCH New Coywolf Qi Hunt 1 participant 1 message Mar 8, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove barrier() in software_resume()

Hello,

This patch removes the redundant compiler barrier. As Linus ever said "The mb() should make sure that gcc cannot move things around...".

--coywolf

kernel/power/disk.c +0 -1
diff -Nrup 2.6.11/kernel/power/disk.c 2.6.11-cy/kernel/power/disk.c
@@ -233,7 +233,6 @@ static int software_resume(void)
 	if ((error = prepare()))
 		goto Free;
 
-	barrier();
 	mb();
 
 	pr_debug("PM: Restoring saved image.\n");
Signature · 2 lines
Coywolf Qi Hunt
Homepage http://sosdg.org/~coywolf/