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 | |
Marc Zyngier | 2f0778af | 2011-12-15 12:19:23 +0100 | [diff] [blame] | 17 | extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate); |
Stephen Boyd | e7e3ff1 | 2013-07-18 16:21:17 -0700 | [diff] [blame^] | 18 | extern void sched_clock_register(u64 (*read)(void), int bits, |
| 19 | unsigned long rate); |
Russell King | 211baa70 | 2011-01-11 16:23:04 +0000 | [diff] [blame] | 20 | |
Rob Herring | 7e48c0b | 2013-04-01 13:53:38 -0500 | [diff] [blame] | 21 | extern unsigned long long (*sched_clock_func)(void); |
| 22 | |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 23 | #endif |