diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-10-04 20:27:07 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-10-09 12:18:06 +0300 |
commit | 41879ff65d8b025eace44610be0b07f678fb3224 (patch) | |
tree | 4759c44017760195a4bdfce5944376a017ade3ca /arch/s390/mm/vmem.c | |
parent | 0b77d6701cf8d4eb343a83fa8d7eca81a863bb7c (diff) | |
download | linux-41879ff65d8b025eace44610be0b07f678fb3224.tar.xz |
s390/mm: use memset64 instead of clear_table
Use memset64 instead of the (now) open-coded variant clear_table.
Performance wise there is no difference.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/vmem.c')
-rw-r--r-- | arch/s390/mm/vmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/vmem.c b/arch/s390/mm/vmem.c index c0af0d7b6e5f..2e84977796a2 100644 --- a/arch/s390/mm/vmem.c +++ b/arch/s390/mm/vmem.c @@ -59,7 +59,7 @@ pte_t __ref *vmem_pte_alloc(void) pte = (pte_t *) memblock_alloc(size, size); if (!pte) return NULL; - clear_table((unsigned long *) pte, _PAGE_INVALID, size); + memset64((u64 *)pte, _PAGE_INVALID, PTRS_PER_PTE); return pte; } |