boards: arm64: xenvm: read real frequency
Read real frequncy from ARM Arch Timer instead of using define 'CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC' which can be incorrect for some run cases. If we run xenvm under qemu we get one frequency, but we can run this build as a DomU for Xen under different real platforms and thus with differenty arch timer frequencies. So, we need to read frequency from the timer registers. Signed-off-by: Mykola Kvach <xakep.amatop@gmail.com>
This commit is contained in:
parent
b2fb570635
commit
bcaa7c2bdb
|
@ -16,3 +16,5 @@ CONFIG_LOG=y
|
|||
CONFIG_LOG_MODE_MINIMAL=n
|
||||
|
||||
CONFIG_USERSPACE=n
|
||||
|
||||
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y
|
||||
|
|
|
@ -15,3 +15,5 @@ CONFIG_LOG=y
|
|||
CONFIG_LOG_MODE_MINIMAL=n
|
||||
|
||||
CONFIG_USERSPACE=n
|
||||
|
||||
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y
|
||||
|
|
Loading…
Reference in a new issue