summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_32.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-10-20 14:22:45 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-10-20 14:22:45 -0700
commitd25e6b0b326278a1096e8334584c3e64517057a3 (patch)
tree3c914b877adf9615c7158b58705478e56c9b4247 /arch/x86/mm/init_32.c
parente44dea35ccb78ab7dc3a75ccec71d7d6f35017c4 (diff)
parent40ffa93791985ab300fd488072e9f37ccf72e88c (diff)
downloadop-kernel-dev-d25e6b0b326278a1096e8334584c3e64517057a3.zip
op-kernel-dev-d25e6b0b326278a1096e8334584c3e64517057a3.tar.gz
Merge branch 'x86/cleanups' into x86/trampoline
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r--arch/x86/mm/init_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index bca7909..558f2d3 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -67,7 +67,7 @@ static __init void *alloc_low_page(void)
panic("alloc_low_page: ran out of memory");
adr = __va(pfn * PAGE_SIZE);
- memset(adr, 0, PAGE_SIZE);
+ clear_page(adr);
return adr;
}
@@ -558,7 +558,7 @@ char swsusp_pg_dir[PAGE_SIZE]
static inline void save_pg_dir(void)
{
- memcpy(swsusp_pg_dir, swapper_pg_dir, PAGE_SIZE);
+ copy_page(swsusp_pg_dir, swapper_pg_dir);
}
#else /* !CONFIG_ACPI_SLEEP */
static inline void save_pg_dir(void)
OpenPOWER on IntegriCloud