diff options
author | gkoehler <gkoehler@cvs.openbsd.org> | 2020-07-17 20:15:44 +0000 |
---|---|---|
committer | gkoehler <gkoehler@cvs.openbsd.org> | 2020-07-17 20:15:44 +0000 |
commit | cc14c1d792208df0fc7e4a840eaca6abac8951d6 (patch) | |
tree | 20d55b8fc87c2192d790ca8d799b4cfa4ee05023 /sys | |
parent | fc0ebbb30495e18368e2e4918de48783ebb96e34 (diff) |
Userland timecounter for macppc
Tested by cwen@ and myself. Thanks to pirofti@ for creating the
userland timecounter feature.
ok kettenis@ pirofti@ deraadt@ cheloha@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/include/timetc.h | 4 | ||||
-rw-r--r-- | sys/arch/macppc/macppc/clock.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/include/timetc.h b/sys/arch/macppc/include/timetc.h index be5be950d4d..267f3201017 100644 --- a/sys/arch/macppc/include/timetc.h +++ b/sys/arch/macppc/include/timetc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: timetc.h,v 1.1 2020/07/06 13:33:07 pirofti Exp $ */ +/* $OpenBSD: timetc.h,v 1.2 2020/07/17 20:15:43 gkoehler Exp $ */ /* * Copyright (c) 2020 Paul Irofti <paul@irofti.net> * @@ -18,6 +18,6 @@ #ifndef _MACHINE_TIMETC_H_ #define _MACHINE_TIMETC_H_ -#define TC_LAST 0 +#define TC_TB 1 #endif /* _MACHINE_TIMETC_H_ */ diff --git a/sys/arch/macppc/macppc/clock.c b/sys/arch/macppc/macppc/clock.c index a858912699b..c582edac1b9 100644 --- a/sys/arch/macppc/macppc/clock.c +++ b/sys/arch/macppc/macppc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.45 2020/07/12 20:32:20 naddy Exp $ */ +/* $OpenBSD: clock.c,v 1.46 2020/07/17 20:15:43 gkoehler Exp $ */ /* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */ /* @@ -57,7 +57,7 @@ u_int32_t ns_per_tick = 320; static int32_t ticks_per_intr; static struct timecounter tb_timecounter = { - tb_get_timecount, NULL, 0xffffffff, 0, "tb", 0, NULL, 0 + tb_get_timecount, NULL, 0xffffffff, 0, "tb", 0, NULL, TC_TB }; /* calibrate the timecounter frequency for the listed models */ |