diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2020-09-27 09:16:45 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-04 01:01:19 +1100 |
commit | 23c4ceaf1a457808d031c666760fa325c7b7f23f (patch) | |
tree | 9438f81cc5e8e05bc8ae4d6dfa33270538278e42 /arch/powerpc/kernel/vdso.c | |
parent | a4ccd64acb8c08ce8d36001cdd06477deec6ae89 (diff) |
powerpc/vdso: Remove vdso_ready
There is no way to get out of vdso_init() prematuraly anymore.
Remove vdso_ready as it will always be 1.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0e1e18c6329b848aa3edeeba76509b4d76182e7d.1601197618.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/vdso.c')
-rw-r--r-- | arch/powerpc/kernel/vdso.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index 93e09e45608c..0a26dc461197 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c @@ -47,8 +47,6 @@ extern char vdso32_start, vdso32_end; extern char vdso64_start, vdso64_end; -static int vdso_ready; - /* * The vdso data page (aka. systemcfg for old ppc64 fans) is here. * Once the early boot kernel code no longer needs to muck around @@ -168,9 +166,6 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) mm->context.vdso = NULL; - if (!vdso_ready) - return 0; - if (mmap_write_lock_killable(mm)) return -EINTR; @@ -309,7 +304,6 @@ static int __init vdso_init(void) vdso64_spec.pages = vdso_setup_pages(&vdso64_start, &vdso64_end); smp_wmb(); - vdso_ready = 1; return 0; } |