treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / clocksource.h
blobcab9ae9f1e14822ea0f8d1c8e16223823450473d
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2015 Imagination Technologies
4 * Author: Alex Smith <alex.smith@imgtec.com>
5 */
7 #ifndef __ASM_CLOCKSOURCE_H
8 #define __ASM_CLOCKSOURCE_H
10 #include <linux/types.h>
12 /* VDSO clocksources. */
13 #define VDSO_CLOCK_NONE 0 /* No suitable clocksource. */
14 #define VDSO_CLOCK_R4K 1 /* Use the coprocessor 0 count. */
15 #define VDSO_CLOCK_GIC 2 /* Use the GIC. */
17 /**
18 * struct arch_clocksource_data - Architecture-specific clocksource information.
19 * @vdso_clock_mode: Method the VDSO should use to access the clocksource.
21 struct arch_clocksource_data {
22 u8 vdso_clock_mode;
25 #endif /* __ASM_CLOCKSOURCE_H */