summaryrefslogtreecommitdiffstats
path: root/sys/arm64
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-09-16 10:04:28 +0000
committerkib <kib@FreeBSD.org>2016-09-16 10:04:28 +0000
commitdddfacf75a4db48e5a557d2ca395fcf246f37b70 (patch)
treeea58970436c8250f3ddf63bd4caeee598547c297 /sys/arm64
parent4a1f75f05099b39074e0485603c771634cb71527 (diff)
downloadFreeBSD-src-dddfacf75a4db48e5a557d2ca395fcf246f37b70.zip
FreeBSD-src-dddfacf75a4db48e5a557d2ca395fcf246f37b70.tar.gz
MFC r304285:
Implement userspace gettimeofday(2) with HPET timecounter.
Diffstat (limited to 'sys/arm64')
-rw-r--r--sys/arm64/arm64/machdep.c11
-rw-r--r--sys/arm64/include/md_var.h5
-rw-r--r--sys/arm64/include/vdso.h2
3 files changed, 2 insertions, 16 deletions
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
index 9d4cfb1..6f5d1a8 100644
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -927,17 +927,6 @@ initarm(struct arm64_bootparams *abp)
early_boot = 0;
}
-uint32_t (*arm_cpu_fill_vdso_timehands)(struct vdso_timehands *,
- struct timecounter *);
-
-uint32_t
-cpu_fill_vdso_timehands(struct vdso_timehands *vdso_th, struct timecounter *tc)
-{
-
- return (arm_cpu_fill_vdso_timehands != NULL ?
- arm_cpu_fill_vdso_timehands(vdso_th, tc) : 0);
-}
-
#ifdef DDB
#include <ddb/ddb.h>
diff --git a/sys/arm64/include/md_var.h b/sys/arm64/include/md_var.h
index 07f816a..ef64920 100644
--- a/sys/arm64/include/md_var.h
+++ b/sys/arm64/include/md_var.h
@@ -47,9 +47,4 @@ void dump_add_page(vm_paddr_t);
void dump_drop_page(vm_paddr_t);
int minidumpsys(struct dumperinfo *);
-struct vdso_timehands;
-struct timecounter;
-extern uint32_t (*arm_cpu_fill_vdso_timehands)(struct vdso_timehands *,
- struct timecounter *);
-
#endif /* !_MACHINE_MD_VAR_H_ */
diff --git a/sys/arm64/include/vdso.h b/sys/arm64/include/vdso.h
index 285e986..872a8c0 100644
--- a/sys/arm64/include/vdso.h
+++ b/sys/arm64/include/vdso.h
@@ -32,4 +32,6 @@
uint32_t th_physical; \
uint32_t th_res[7];
+#define VDSO_TH_ALGO_ARM_GENTIM VDSO_TH_ALGO_1
+
#endif /* !_MACHINE_VDSO_H_ */
OpenPOWER on IntegriCloud