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 ifs and menus.)

Default

  • 0

Kconfig definition

At <Zephyr>/drivers/timer/Kconfig:86

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:32<Zephyr>/drivers/Kconfig:28

Menu path: (Top) → Device Drivers → Timer Drivers → LOAPIC timer

config TSC_CYCLES_PER_SEC
    int "Frequency of x86 CPU timestamp counter"
    default 0
    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.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)