cpu-all.h: fix cpu_get_real_ticks on mips host
authorArnaud Patard <arnaud.patard@rtp-net.org>
Sat, 11 Apr 2009 14:02:46 +0000 (16:02 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 24 Nov 2009 18:51:13 +0000 (19:51 +0100)
commit0ba96d81a9724a45dcc97228e4f407d9465613cf
tree6cb29419caed5db763b6ed544006fae26c880ce7
parentc47df0968687aed566254c662aba1fa482096c81
cpu-all.h: fix cpu_get_real_ticks on mips host

Fix cpu_get_real_ticks:
- check should be done on __mips and not __mips_isa_rev
- linux kernels >= 2.6.25 are emulating the 2 needed rdhwr functions
  so it's safe to use rdhwr.

This is better than what's currently in but it doesn't mean it works nicely
Some tests needs to be done imho

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
cpu-all.h