[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 <davem@davemloft.net>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user