|
@@ -5,10 +5,15 @@
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
*/
|
|
-#ifndef ASM_SCHED_CLOCK
|
|
|
|
-#define ASM_SCHED_CLOCK
|
|
|
|
|
|
+#ifndef LINUX_SCHED_CLOCK
|
|
|
|
+#define LINUX_SCHED_CLOCK
|
|
|
|
|
|
|
|
+#ifdef CONFIG_GENERIC_SCHED_CLOCK
|
|
extern void sched_clock_postinit(void);
|
|
extern void sched_clock_postinit(void);
|
|
|
|
+#else
|
|
|
|
+static inline void sched_clock_postinit(void) { }
|
|
|
|
+#endif
|
|
|
|
+
|
|
extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate);
|
|
extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate);
|
|
|
|
|
|
extern unsigned long long (*sched_clock_func)(void);
|
|
extern unsigned long long (*sched_clock_func)(void);
|