]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/sched_clock.h
Merge tag 'writeback-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg...
[mirror_ubuntu-bionic-kernel.git] / include / linux / sched_clock.h
CommitLineData
112f38a4
RK
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 */
38ff87f7
SB
8#ifndef LINUX_SCHED_CLOCK
9#define LINUX_SCHED_CLOCK
112f38a4 10
38ff87f7 11#ifdef CONFIG_GENERIC_SCHED_CLOCK
211baa70 12extern void sched_clock_postinit(void);
38ff87f7
SB
13#else
14static inline void sched_clock_postinit(void) { }
15#endif
16
2f0778af 17extern void setup_sched_clock(u32 (*read)(void), int bits, unsigned long rate);
211baa70 18
7e48c0b9
RH
19extern unsigned long long (*sched_clock_func)(void);
20
112f38a4 21#endif