lib: utils/timer: Use scratch space to save per-HART MTIMER pointer
authorAnup Patel <apatel@ventanamicro.com>
Wed, 19 Apr 2023 15:57:27 +0000 (21:27 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 5 Jun 2023 11:16:50 +0000 (16:46 +0530)
commitf0516beae068ffce0d5a79f09a96904a661a25ba
treecdd380584ee8845c0630b4cb972dc39fef570f89
parentacbd8fce9e5d92f07d344388a3b046f1722ce072
lib: utils/timer: Use scratch space to save per-HART MTIMER pointer

Instead of using a global array indexed by hartid, we should use
scratch space to save per-HART MTIMER pointer.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
lib/utils/timer/aclint_mtimer.c