blob: cab9ae9f1e14822ea0f8d1c8e16223823450473d [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2015 Imagination Technologies
4 * Author: Alex Smith <alex.smith@imgtec.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 */
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 */
21struct arch_clocksource_data {
22 u8 vdso_clock_mode;
23};
24
25#endif /* __ASM_CLOCKSOURCE_H */