]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc32: Tell userland about lack of standard TB
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Oct 2005 04:22:50 +0000 (14:22 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 12 Oct 2005 15:24:47 +0000 (08:24 -0700)
commitac0ac333b8af602f97cf8987bfd8e1628ac3f8db
tree828a1633c667c0769feec6451aa450bbfb911a10
parentc9804720a14d660d5d42a18e38a71002ea756d6f
[PATCH] ppc32: Tell userland about lack of standard TB

Glibc is about to get some new high precision timer stuff that relies on
the standard timebase of the PPC architecture.

However, some (rare & old) CPUs do not have such timebase and it is a
bit annoying to have your stuff just crash because you are running on
the wrong CPU...

This exposes to userland a CPU feature bit that tells that the current
processor doesn't have a standard timebase.  It's negative logic so that
glibc will still "just work" on older kernels (it will just be unhappy
on those old CPUs but that doesn't really matter as distro tend to
update glibc & kernel at the same time).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/cputable.c
include/asm-ppc/cputable.h