Commit bf9f5763 authored by Coywolf Qi Hunt's avatar Coywolf Qi Hunt Committed by Linus Torvalds

[PATCH] remove barrier() in software_resume()

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: default avatarCoywolf Qi Hunt <coywolf@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8461e0c6
......@@ -233,7 +233,6 @@ static int software_resume(void)
if ((error = prepare()))
goto Free;
barrier();
mb();
pr_debug("PM: Restoring saved image.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment