]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - include/linux/sched_clock.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[thirdparty/kernel/stable.git] / include / linux / sched_clock.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
112f38a4
RK
2/*
3 * sched_clock.h: support for extending counters to full 64-bit ns counter
112f38a4 4 */
38ff87f7
SB
5#ifndef LINUX_SCHED_CLOCK
6#define LINUX_SCHED_CLOCK
112f38a4 7
38ff87f7 8#ifdef CONFIG_GENERIC_SCHED_CLOCK
5d2a4e91 9extern void generic_sched_clock_init(void);
38ff87f7 10
e7e3ff1b
SB
11extern void sched_clock_register(u64 (*read)(void), int bits,
12 unsigned long rate);
364eba4b 13#else
5d2a4e91 14static inline void generic_sched_clock_init(void) { }
364eba4b
DL
15
16static inline void sched_clock_register(u64 (*read)(void), int bits,
17 unsigned long rate)
18{
364eba4b
DL
19}
20#endif
211baa70 21
112f38a4 22#endif