android_kernel_xiaomi_sm8350/kernel/power
Rafael J. Wysocki 95018f7c94 [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 <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-10 13:24:22 -07:00
..
console.c
disk.c [PATCH] constify parts of kernel/power/ 2006-06-25 10:01:08 -07:00
Kconfig remove obsolete swsusp_encrypt 2006-06-30 18:59:59 +02:00
main.c [PATCH] constify parts of kernel/power/ 2006-06-25 10:01:08 -07:00
Makefile
pm.c
power.h Revert "swsusp special saveable pages support" commits 2006-06-25 18:41:00 -07:00
poweroff.c
process.c
smp.c
snapshot.c [PATCH] swsusp: do not use memcpy for snapshotting memory 2006-07-10 13:24:22 -07:00
swap.c
swsusp.c Revert "swsusp special saveable pages support" commits 2006-06-25 18:41:00 -07:00
user.c