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 |
Pavel Tatashin | 5d2a4e9 | 2018-07-19 16:55:41 -0400 | [diff] [blame^] | 12 | extern void generic_sched_clock_init(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 |
Pavel Tatashin | 5d2a4e9 | 2018-07-19 16:55:41 -0400 | [diff] [blame^] | 17 | static inline void generic_sched_clock_init(void) { } |
Daniel Lezcano | 364eba4 | 2015-10-29 18:33:47 +0100 | [diff] [blame] | 18 | |
| 19 | static inline void sched_clock_register(u64 (*read)(void), int bits, |
| 20 | unsigned long rate) |
| 21 | { |
Daniel Lezcano | 364eba4 | 2015-10-29 18:33:47 +0100 | [diff] [blame] | 22 | } |
| 23 | #endif |
Russell King | 211baa70 | 2011-01-11 16:23:04 +0000 | [diff] [blame] | 24 | |
Russell King | 112f38a4 | 2010-12-15 19:23:07 +0000 | [diff] [blame] | 25 | #endif |