powerpc/perf_counter: Fix vdso detection
authorAnton Blanchard <anton@samba.org>
Mon, 21 Sep 2009 16:57:40 +0000 (16:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Sep 2009 05:31:45 +0000 (15:31 +1000)
commitf2053f1a7bf6005b4e81826b1ac8d0b4117c4cf0
treed8c69b5ead3bfb5b09d05dd4804ce022cdea8883
parent8bbde7a7062facf8af35bcc9a64cbafe8f36f3cf
powerpc/perf_counter: Fix vdso detection

perf_counter uses arch_vma_name() to detect a vdso region which in turn uses
current->mm->context.vdso_base. We need to initialise this before doing
the mmap or else we fail to detect the vdso.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/vdso.c