Linux 4.13.16
[linux/fpc-iii.git] / arch / powerpc / include / asm / mm-arch-hooks.h
blobf2a2da89589704f43e569148623b9feae3f0623d
1 /*
2 * Architecture specific mm hooks
4 * Copyright (C) 2015, IBM Corporation
5 * Author: Laurent Dufour <ldufour@linux.vnet.ibm.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #ifndef _ASM_POWERPC_MM_ARCH_HOOKS_H
13 #define _ASM_POWERPC_MM_ARCH_HOOKS_H
15 static inline void arch_remap(struct mm_struct *mm,
16 unsigned long old_start, unsigned long old_end,
17 unsigned long new_start, unsigned long new_end)
20 * mremap() doesn't allow moving multiple vmas so we can limit the
21 * check to old_start == vdso_base.
23 if (old_start == mm->context.vdso_base)
24 mm->context.vdso_base = new_start;
26 #define arch_remap arch_remap
28 #endif /* _ASM_POWERPC_MM_ARCH_HOOKS_H */