Skip to content

Commit 8eabf80

Browse files
najumon1980jhedberg
authored andcommitted
board: x86: enable system timer clock frequency at run time
add support for retrieve runtime clock frequency (HW clock cycle per sec) for APIC TSC timer for various Intel platforms Signed-off-by: Najumon B.A <[email protected]>
1 parent 7c03e5d commit 8eabf80

File tree

9 files changed

+9
-5
lines changed

9 files changed

+9
-5
lines changed

boards/acrn/acrn/acrn_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ CONFIG_X2APIC=y
99
CONFIG_CONSOLE=y
1010
CONFIG_SERIAL=y
1111
CONFIG_UART_CONSOLE=y
12-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
1312
CONFIG_BUILD_OUTPUT_BIN=y
1413
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
1514
CONFIG_KERNEL_VM_SIZE=0x1000000
1615
CONFIG_BUILD_NO_GAP_FILL=y
16+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/acrn/acrn/acrn_ehl_crb_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ CONFIG_PCIE=y
99
CONFIG_CONSOLE=y
1010
CONFIG_SERIAL=y
1111
CONFIG_UART_CONSOLE=y
12-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=1900000000
1312
CONFIG_BUILD_OUTPUT_BIN=y
1413
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
1514
CONFIG_KERNEL_VM_SIZE=0x1000000
1615
CONFIG_BUILD_NO_GAP_FILL=y
1716
CONFIG_APIC_TSC_DEADLINE_TIMER=y
1817
CONFIG_APIC_TIMER_IRQ_PRIORITY=1
1918
CONFIG_SMP=y
19+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/intel/adl/intel_adl_crb_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CONFIG_X2APIC=y
1010
CONFIG_SMP=y
1111
CONFIG_BUILD_OUTPUT_EFI=y
1212
CONFIG_BUILD_NO_GAP_FILL=y
13+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/intel/adl/intel_adl_rvp_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CONFIG_X2APIC=y
1010
CONFIG_SMP=y
1111
CONFIG_BUILD_OUTPUT_EFI=y
1212
CONFIG_BUILD_NO_GAP_FILL=y
13+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/intel/ehl/intel_ehl_crb_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CONFIG_SMP=y
1010
CONFIG_BUILD_OUTPUT_EFI=y
1111
CONFIG_BUILD_NO_GAP_FILL=y
1212
CONFIG_PCIE_PRT=n
13+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/intel/rpl/intel_rpl_p_crb_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ CONFIG_X2APIC=y
1111
CONFIG_SMP=y
1212
CONFIG_BUILD_OUTPUT_EFI=y
1313
CONFIG_BUILD_NO_GAP_FILL=y
14+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/intel/rpl/intel_rpl_s_crb_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ CONFIG_X2APIC=y
1111
CONFIG_SMP=y
1212
CONFIG_BUILD_OUTPUT_EFI=y
1313
CONFIG_BUILD_NO_GAP_FILL=y
14+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/up-bridge-the-gap/up_squared/up_squared_defconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ CONFIG_X2APIC=y
1010
CONFIG_SMP=y
1111
CONFIG_BUILD_OUTPUT_EFI=y
1212
CONFIG_BUILD_NO_GAP_FILL=y
13-
14-
CONFIG_APIC_TSC_DEADLINE_TIMER=n
15-
CONFIG_HPET_TIMER=y
13+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

boards/up-bridge-the-gap/up_squared_pro_7000/up_squared_pro_7000_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CONFIG_X2APIC=y
1010
CONFIG_SMP=y
1111
CONFIG_BUILD_OUTPUT_EFI=y
1212
CONFIG_BUILD_NO_GAP_FILL=y
13+
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y

0 commit comments

Comments
 (0)