summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/machine_kexec_64.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/kernel/machine_kexec_64.c
parente44dea35ccb78ab7dc3a75ccec71d7d6f35017c4 (diff)
parent40ffa93791985ab300fd488072e9f37ccf72e88c (diff)
downloadblackbird-op-linux-d25e6b0b326278a1096e8334584c3e64517057a3.tar.gz
blackbird-op-linux-d25e6b0b326278a1096e8334584c3e64517057a3.zip
Merge branch 'x86/cleanups' into x86/trampoline
Diffstat (limited to 'arch/x86/kernel/machine_kexec_64.c')
-rw-r--r--arch/x86/kernel/machine_kexec_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c
index 035c8c529181..b3ea9db39db6 100644
--- a/arch/x86/kernel/machine_kexec_64.c
+++ b/arch/x86/kernel/machine_kexec_64.c
@@ -36,7 +36,7 @@ static int init_one_level2_page(struct kimage *image, pgd_t *pgd,
if (!page)
goto out;
pud = (pud_t *)page_address(page);
- memset(pud, 0, PAGE_SIZE);
+ clear_page(pud);
set_pgd(pgd, __pgd(__pa(pud) | _KERNPG_TABLE));
}
pud = pud_offset(pgd, addr);
@@ -45,7 +45,7 @@ static int init_one_level2_page(struct kimage *image, pgd_t *pgd,
if (!page)
goto out;
pmd = (pmd_t *)page_address(page);
- memset(pmd, 0, PAGE_SIZE);
+ clear_page(pmd);
set_pud(pud, __pud(__pa(pmd) | _KERNPG_TABLE));
}
pmd = pmd_offset(pud, addr);
OpenPOWER on IntegriCloud