diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-08-11 10:41:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-08-11 10:41:09 +0000 |
commit | 1e2eb91667fb340c552bf96a4a39b288de6d3478 (patch) | |
tree | 7e562ceae6ee68b4b44300fd15ed23f83fca1e8c /sys/arch/arm64/dev | |
parent | 50f3519eebc144c31fec12607cbe4253ef875631 (diff) |
Use MAXCPUS as the number of elements for the array of per-cpu data.
Fixes machines with more than 8 cores.
ok jsg@, patrick@
Diffstat (limited to 'sys/arch/arm64/dev')
-rw-r--r-- | sys/arch/arm64/dev/agtimer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/arm64/dev/agtimer.c b/sys/arch/arm64/dev/agtimer.c index 0e6e6a3bc6e..d80f497b5f9 100644 --- a/sys/arch/arm64/dev/agtimer.c +++ b/sys/arch/arm64/dev/agtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agtimer.c,v 1.9 2018/01/31 10:52:12 kettenis Exp $ */ +/* $OpenBSD: agtimer.c,v 1.10 2018/08/11 10:41:08 kettenis Exp $ */ /* * Copyright (c) 2011 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2013 Patrick Wildt <patrick@blueri.se> @@ -46,8 +46,6 @@ static struct timecounter agtimer_timecounter = { agtimer_get_timecount, NULL, 0x7fffffff, 0, "agtimer", 0, NULL }; -#define MAX_ARM_CPUS 8 - struct agtimer_pcpu_softc { uint64_t pc_nexttickevent; uint64_t pc_nextstatevent; @@ -58,7 +56,7 @@ struct agtimer_softc { struct device sc_dev; int sc_node; - struct agtimer_pcpu_softc sc_pstat[MAX_ARM_CPUS]; + struct agtimer_pcpu_softc sc_pstat[MAXCPUS]; u_int32_t sc_ticks_err_cnt; u_int32_t sc_ticks_per_second; |