summaryrefslogtreecommitdiffstats
path: root/arch/mips/vdso/vdso.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/vdso/vdso.h')
-rw-r--r--arch/mips/vdso/vdso.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/vdso/vdso.h b/arch/mips/vdso/vdso.h
index 0bb6b1adc385..cfb1be441dec 100644
--- a/arch/mips/vdso/vdso.h
+++ b/arch/mips/vdso/vdso.h
@@ -77,4 +77,13 @@ static inline const union mips_vdso_data *get_vdso_data(void)
return (const union mips_vdso_data *)(get_vdso_base() - PAGE_SIZE);
}
+#ifdef CONFIG_CLKSRC_MIPS_GIC
+
+static inline void __iomem *get_gic(const union mips_vdso_data *data)
+{
+ return (void __iomem *)data - PAGE_SIZE;
+}
+
+#endif /* CONFIG_CLKSRC_MIPS_GIC */
+
#endif /* __ASSEMBLY__ */
OpenPOWER on IntegriCloud