1 #include <darwintest.h> 2 #include <sys/sysctl.h> 3 #include "apple_generic_timer.h" 4 #include "test_utils.h" 5 6 T_GLOBAL_META( 7 T_META_NAMESPACE("xnu.arm"), 8 T_META_RADAR_COMPONENT_NAME("xnu"), 9 T_META_RADAR_COMPONENT_VERSION("arm"), 10 T_META_ENABLED(TARGET_CPU_ARM64), 11 T_META_OWNER("xi_han"), 12 T_META_RUN_CONCURRENTLY(true), 13 XNU_T_META_SOC_SPECIFIC 14 ); 15 16 T_DECL(apple_generic_timer_legacy, 17 "Test that CNTFRQ_EL0 reads the correct frequency when built with old SDKs") 18 { 19 /* Always expect 24 MHz. Check Makefile for SDK version overrides. */ 20 agt_test_helper(false); 21 } 22