summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/clocksource.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-02-07 13:38:57 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-02-17 20:12:16 +0100
commite1bdb22ebe5363ed75ddedf836ca9f19e1195337 (patch)
tree0ff39b2bb1d92f6f8c045f6dc0299f6b3b155651 /arch/mips/include/asm/clocksource.h
parentb95a8a27c300d1a39a4e36f63a518ef36e4b966c (diff)
downloadlinux-e1bdb22ebe5363ed75ddedf836ca9f19e1195337.tar.gz
linux-e1bdb22ebe5363ed75ddedf836ca9f19e1195337.tar.bz2
linux-e1bdb22ebe5363ed75ddedf836ca9f19e1195337.zip
mips: vdso: Use generic VDSO clock mode storage
Switch to the generic VDSO clock mode storage. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://lkml.kernel.org/r/20200207124403.244684017@linutronix.de
Diffstat (limited to 'arch/mips/include/asm/clocksource.h')
-rw-r--r--arch/mips/include/asm/clocksource.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/arch/mips/include/asm/clocksource.h b/arch/mips/include/asm/clocksource.h
index cab9ae9f1e14..de659cae0d4e 100644
--- a/arch/mips/include/asm/clocksource.h
+++ b/arch/mips/include/asm/clocksource.h
@@ -3,23 +3,11 @@
* Copyright (C) 2015 Imagination Technologies
* Author: Alex Smith <alex.smith@imgtec.com>
*/
-
#ifndef __ASM_CLOCKSOURCE_H
#define __ASM_CLOCKSOURCE_H
-#include <linux/types.h>
-
-/* VDSO clocksources. */
-#define VDSO_CLOCK_NONE 0 /* No suitable clocksource. */
-#define VDSO_CLOCK_R4K 1 /* Use the coprocessor 0 count. */
-#define VDSO_CLOCK_GIC 2 /* Use the GIC. */
-
-/**
- * struct arch_clocksource_data - Architecture-specific clocksource information.
- * @vdso_clock_mode: Method the VDSO should use to access the clocksource.
- */
-struct arch_clocksource_data {
- u8 vdso_clock_mode;
-};
+#define VDSO_ARCH_CLOCKMODES \
+ VDSO_CLOCKMODE_R4K, \
+ VDSO_CLOCKMODE_GIC
#endif /* __ASM_CLOCKSOURCE_H */