mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SPARC64]: Define ARCH_HAS_READ_CURRENT_TIMER.
This gives more consistent bogomips and delay() semantics, especially on sun4v. It gives weird looking values though... Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3f19a84e39
commit
3763be32d5
3 changed files with 15 additions and 18 deletions
|
|
@ -14,4 +14,10 @@
|
|||
typedef unsigned long cycles_t;
|
||||
#define get_cycles() tick_ops->get_tick()
|
||||
|
||||
#define ARCH_HAS_READ_CURRENT_TIMER 1
|
||||
#define read_current_timer(timer_val_p) \
|
||||
({ *timer_val_p = tick_ops->get_tick(); \
|
||||
0; \
|
||||
})
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue