[patch] remove barrier() in software_resume()

From: Coywolf Qi Hunt
Date: Tue Mar 08 2005 - 12:58:37 EST


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


Signed-off-by: Coywolf Qi Hunt <coywolf@xxxxxxxxx>

diff -Nrup 2.6.11/kernel/power/disk.c 2.6.11-cy/kernel/power/disk.c
--- 2.6.11/kernel/power/disk.c 2005-03-03 17:12:17.000000000 +0800
+++ 2.6.11-cy/kernel/power/disk.c 2005-03-09 01:47:10.000000000 +0800
@@ -233,7 +233,6 @@ static int software_resume(void)
if ((error = prepare()))
goto Free;

- barrier();

pr_debug("PM: Restoring saved image.\n");

Coywolf Qi Hunt
Homepage http://sosdg.org/~coywolf/
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/