project/qemu: Increase timertest granularity to 2ms

Statically linked qemu with glibc<2.29 uses
a syscall for clock_gettime instead of the VDSO
which makes the calls much slower.

Bug: 285203365
Change-Id: Ic7bb79cd4e804c47e4b586d7b5d647ef3545d063
diff --git a/project/qemu-inc.mk b/project/qemu-inc.mk
index 7141551..afd5045 100644
--- a/project/qemu-inc.mk
+++ b/project/qemu-inc.mk
@@ -24,6 +24,10 @@
 # enough pages for the page tables for the initial mappings
 GLOBAL_DEFINES += MMU_IDENT_SIZE_SHIFT=29
 
+# Qemu statically built with glibc<2.29 uses a syscall to implement
+# clock_gettime instead of the VDSO, which makes the calls much slower
+APP_TIMERTEST_MAX_CLOCK_PERIOD := 2000
+
 # Derive RPMB key using HKDF
 WITH_HKDF_RPMB_KEY ?= true