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 */ 6 7 #ifndef __ASM_CLOCKSOURCE_H 8 #define __ASM_CLOCKSOURCE_H 9 10 #include <linux/types.h> 11 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. */ 16 17 /** 18 * struct arch_clocksource_data - Architecture-specific clocksource information. 19 * @vdso_clock_mode: Method the VDSO should use to access the clocksource. 20 */ 21 struct arch_clocksource_data { 22 u8 vdso_clock_mode; 23 }; 24 25 #endif /* __ASM_CLOCKSOURCE_H */ 26