[POWERPC] Don't expose clock vDSO functions when CPU has no timebase
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Sep 2007 04:21:56 +0000 (14:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Sep 2007 05:26:34 +0000 (15:26 +1000)
commit7b5acbaac3f94ab810a977c0ec4e5fcabbf51bed
tree2d86484ddd3f2829d91be16da5458740444f2a08
parentc0e7b4aa1c09ea992808ea8c079141bc8dd0f5bc
[POWERPC] Don't expose clock vDSO functions when CPU has no timebase

We forgot to remove the clock_gettime, clock_getres and get_tbfreq vDSO
calls on CPUs that have no timebase such as 601 or 403 (old CPUs that have
different mechanisms and for which the vDSO code will not work properly).
This fixes it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/vdso.c