David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * sched_clock.h: support for extending counters to full 64-bit ns counter |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | */ |
| 5 | #ifndef LINUX_SCHED_CLOCK |
| 6 | #define LINUX_SCHED_CLOCK |
| 7 | |
| 8 | #ifdef CONFIG_GENERIC_SCHED_CLOCK |
| 9 | extern void generic_sched_clock_init(void); |
| 10 | |
| 11 | extern void sched_clock_register(u64 (*read)(void), int bits, |
| 12 | unsigned long rate); |
| 13 | #else |
| 14 | static inline void generic_sched_clock_init(void) { } |
| 15 | |
| 16 | static inline void sched_clock_register(u64 (*read)(void), int bits, |
| 17 | unsigned long rate) |
| 18 | { |
| 19 | } |
| 20 | #endif |
| 21 | |
| 22 | #endif |