From: Rafael J. Wysocki Date: Mon, 10 Jul 2006 11:45:00 +0000 (-0700) Subject: [PATCH] swsusp: do not use memcpy for snapshotting memory X-Git-Tag: v2.6.18-rc2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95018f7c94cbe4e78fc014b6ce52004714c06e2a;p=pandora-kernel.git [PATCH] swsusp: do not use memcpy for snapshotting memory swsusp should not use memcpy for snapshotting memory, because on some architectures memcpy may increase preempt_count (i386 does this when CONFIG_X86_USE_3DNOW is set). Then, as a result, wrong value of preempt_count is stored in the image. Replace memcpy in copy_data_pages with an open-coded loop. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed