Rev 2023 | Rev 2037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2023 | Rev 2034 | ||
|---|---|---|---|
| Line 33... | Line 33... | ||
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #ifndef KERN_sparc64_CYCLE_H_ |
35 | #ifndef KERN_sparc64_CYCLE_H_ |
| 36 | #define KERN_sparc64_CYCLE_H_ |
36 | #define KERN_sparc64_CYCLE_H_ |
| 37 | 37 | ||
| - | 38 | #include <arch/asm.h> |
|
| - | 39 | ||
| 38 | static inline uint64_t get_cycle(void) |
40 | static inline uint64_t get_cycle(void) |
| 39 | { |
41 | { |
| 40 | return 0; |
42 | return tick_read(); |
| 41 | } |
43 | } |
| 42 | 44 | ||
| 43 | #endif |
45 | #endif |
| 44 | 46 | ||
| 45 | /** @} |
47 | /** @} |