* [patch] remove barrier() in software_resume()
@ 2005-03-08 17:56 Coywolf Qi Hunt
0 siblings, 0 replies; only message in thread
From: Coywolf Qi Hunt @ 2005-03-08 17:56 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
Hello,
This patch removes the redundant compiler barrier. As Linus ever said
"The mb() should make sure that gcc cannot move things around...".
--coywolf
Signed-off-by: Coywolf Qi Hunt <coywolf@gmail.com>
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();
mb();
pr_debug("PM: Restoring saved image.\n");
--
Coywolf Qi Hunt
Homepage http://sosdg.org/~coywolf/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-08 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 17:56 [patch] remove barrier() in software_resume() Coywolf Qi Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox