Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * sched_clock.h: support for extending counters to full 64-bit ns counter |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
Stephen Boyd | 38ff87f | 2013-06-01 23:39:40 -0700 | [diff] [blame] | 8 | #ifndef LINUX_SCHED_CLOCK |
| 9 | #define LINUX_SCHED_CLOCK |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 10 | |
Stephen Boyd | 38ff87f | 2013-06-01 23:39:40 -0700 | [diff] [blame] | 11 | #ifdef CONFIG_GENERIC_SCHED_CLOCK |
Russell King | 211baa70 | 2011-01-11 16:23:04 +0000 | [diff] [blame] | 12 | extern void sched_clock_postinit(void); |
Stephen Boyd | 38ff87f | 2013-06-01 23:39:40 -0700 | [diff] [blame] | 13 | |
Stephen Boyd | e7e3ff1 | 2013-07-18 16:21:17 -0700 | [diff] [blame] | 14 | extern void sched_clock_register(u64 (*read)(void), int bits, |
| 15 | unsigned long rate); |
Daniel Lezcano | 364eba4 | 2015-10-29 18:33:47 +0100 | [diff] [blame] | 16 | #else |
| 17 | static inline void sched_clock_postinit(void) { } |
| 18 | |
| 19 | static inline void sched_clock_register(u64 (*read)(void), int bits, |
| 20 | unsigned long rate) |
| 21 | { |
| 22 | ; |
| 23 | } |
| 24 | #endif |
Russell King | 211baa70 | 2011-01-11 16:23:04 +0000 | [diff] [blame] | 25 | |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 26 | #endif |