X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Ftimex.h;h=2a5e4ebaad805bc89b313a17c38937f9273a2198;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=9e8d4175bcb25433ab4a166fb39865780a4baea6;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/include/asm-sparc64/timex.h b/include/asm-sparc64/timex.h index 9e8d4175b..2a5e4ebaa 100644 --- a/include/asm-sparc64/timex.h +++ b/include/asm-sparc64/timex.h @@ -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