powerpc: use ATB clock, if it's available
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Feb 2013 13:43:02 +0000 (14:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Feb 2013 13:43:02 +0000 (14:43 +0100)
commit4247d1a9a27b6a23092a2c75e94e0545ad6a3376
treedf51bf794e6b48b74d9f3262f973e4d21a4224e7
parent0f78b22cb13d2e59b134ee80bafa669679504bd6
powerpc: use ATB clock, if it's available

The ATB is more precise, but we don't know if it's available.
Check by forking off a process that attempts to use it, if
we die with SIGILL, then we know it's not there.

Based on code from Steven Noonan.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arch-ppc.h
arch/arch.h