CONFIG_TSC_CYCLES_PER_SEC

Frequency of x86 CPU timestamp counter

Type: int

Help

The x86 implementation of LOAPIC k_cycle_get_32() relies on the x86 TSC. This runs at the CPU speed and not the bus speed. If set to 0, the value of CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC will be used instead; many MCUs these values are the same.

Direct dependencies

LOAPIC_TIMER

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At drivers/timer/Kconfig:105

Included via Kconfig:10Kconfig.zephyr:29drivers/Kconfig:26

Menu path: (top menu) → Device Drivers → Timer Drivers

config TSC_CYCLES_PER_SEC
    int
    prompt "Frequency of x86 CPU timestamp counter" if LOAPIC_TIMER
    default 0 if LOAPIC_TIMER
    depends on LOAPIC_TIMER
    help
      The x86 implementation of LOAPIC k_cycle_get_32() relies on the x86 TSC.
      This runs at the CPU speed and not the bus speed. If set to 0, the
      value of CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC will be used instead;
      many MCUs these values are the same.

(Definitions include propagated dependencies, including from if’s and menus.)