]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - arch/m68k/include/asm/timex.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / arch / m68k / include / asm / timex.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ebafc174
GU
2/*
3 * linux/include/asm-m68k/timex.h
4 *
5 * m68k architecture timex specifications
6 */
2756730b
PDM
7#ifndef _ASMm68K_TIMEX_H
8#define _ASMm68K_TIMEX_H
ebafc174 9
2756730b
PDM
10#ifdef CONFIG_COLDFIRE
11/*
12 * CLOCK_TICK_RATE should give the underlying frequency of the tick timer
13 * to make ntp work best. For Coldfires, that's the main clock.
14 */
15#include <asm/coldfire.h>
16#define CLOCK_TICK_RATE MCF_CLK
17#else
18/*
19 * This default CLOCK_TICK_RATE is probably wrong for many 68k boards
20 * Users of those boards will need to check and modify accordingly
21 */
ebafc174 22#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
2756730b 23#endif
ebafc174
GU
24
25typedef unsigned long cycles_t;
26
27static inline cycles_t get_cycles(void)
28{
29 return 0;
30}
31
017cecee
GU
32extern unsigned long (*mach_random_get_entropy)(void);
33
34static inline unsigned long random_get_entropy(void)
35{
36 if (mach_random_get_entropy)
37 return mach_random_get_entropy();
38 return 0;
39}
40#define random_get_entropy random_get_entropy
41
49148020 42#endif