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 | #else |
| 14 | static inline void sched_clock_postinit(void) { } |
| 15 | #endif |
| 16 | |
Stephen Boyd | e7e3ff1 | 2013-07-18 16:21:17 -0700 | [diff] [blame] | 17 | extern void sched_clock_register(u64 (*read)(void), int bits, |
| 18 | unsigned long rate); |
Russell King | 211baa70 | 2011-01-11 16:23:04 +0000 | [diff] [blame] | 19 | |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 20 | #endif |