Skip to content

Boost default tick rate to double digit kHz on tickless hardware #16782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f70bb21
drivers/timer/nrf_rtc_timer: Fix round-up for rapid tick rates
Jun 10, 2019
6a7fe61
tests/kernel/mem_pool: Fix timeout units
Jun 11, 2019
c17a362
tests: samples: Apps shouldn't set tick rate
Jun 11, 2019
b423594
kernel: Crank up default tick rate
Jun 11, 2019
7ceac5e
boards/arm: Remove 1000 Hz tick rate on STM32 boards
Jun 11, 2019
b76ab9b
boards/arc: Remove tick rate settings for ARC hardware
Jun 11, 2019
b22a05d
soc/arm: Increase nRF timer default to the cycle rate.
Jun 11, 2019
c9e0787
soc/arm: Remove 1 kHz tick rate default for mcimx7_m4 and msp432p401r
Jun 11, 2019
fe06989
tests/kernel/sched/schedule_api: Fix slice time test for fast ticks
Jun 12, 2019
074694c
tests/kernel/common: Fix uptime delta test for fast ticks
Jun 12, 2019
f918298
tests/kernel/context: Fix sleep test for fast ticks
Jun 12, 2019
13f7b27
drivers/sensor/hp206c: Clarify tick rate warning
Jun 12, 2019
355200f
kernel/sched: Interpret zero timeslice time correctly
Jun 16, 2019
c5044a1
tests/kernel/sleep: Fix usleep test for fast ticks
Jun 16, 2019
6d3a8df
tests/kernel/tickless/tickless_concept: Force 100 Hz ticks
Jun 16, 2019
ab7179a
tests/kernel/early_sleep: Fix for fast ticks
Jun 16, 2019
259512b
tests/kernel/workq/work_queue: Fix for fast/non-standard tick rates
Jun 16, 2019
a33b6d8
tests/posix/common: Adjust miscalibrated timing test
Jun 16, 2019
8df996c
tests/cmsis_rtos_v1: Correct timing assumptions
Jun 16, 2019
4a212b7
CMSIS v2: Work around time unit confusion
Jun 16, 2019
a256306
kernel/mempool: Fix ticks/ms confusion
Jun 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion boards/arc/arduino_101_sss/arduino_101_sss_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
CONFIG_ARC=y
CONFIG_SOC_QUARK_SE_C1000_SS=y
CONFIG_BOARD_ARDUINO_101_SSS=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
CONFIG_XIP=y
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arc/em_starterkit/em_starterkit_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM9D=y
CONFIG_BOARD_EM_STARTERKIT=y
CONFIG_BOARD_EM_STARTERKIT_R23=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arc/em_starterkit/em_starterkit_em11d_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM11D=y
CONFIG_BOARD_EM_STARTERKIT=y
CONFIG_BOARD_EM_STARTERKIT_R23=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arc/em_starterkit/em_starterkit_em7d_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y
CONFIG_BOARD_EM_STARTERKIT=y
CONFIG_BOARD_EM_STARTERKIT_R23=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arc/em_starterkit/em_starterkit_em7d_v22_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_SOC_EMSK=y
CONFIG_SOC_EMSK_EM7D=y
CONFIG_BOARD_EM_STARTERKIT=y
CONFIG_BOARD_EM_STARTERKIT_R22=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arc/iotdk/iotdk_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
CONFIG_ARC=y
CONFIG_SOC_ARC_IOT=y
CONFIG_BOARD_IOTDK=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_XIP=n
CONFIG_BUILD_OUTPUT_BIN=n
CONFIG_PRINTK=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
CONFIG_ARC=y
CONFIG_SOC_QUARK_SE_C1000_SS=y
CONFIG_BOARD_QUARK_SE_C1000_DEVBOARD_SS=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
CONFIG_XIP=y
CONFIG_PRINTK=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/96b_argonkey/96b_argonkey_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_CORTEX_M_SYSTICK=y

# 84MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# enable uart driver
CONFIG_SERIAL=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/96b_carbon/96b_carbon_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_CORTEX_M_SYSTICK=y

# 84MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/96b_neonkey/96b_neonkey_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_CORTEX_M_SYSTICK=y

# 84MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# enable uart driver
CONFIG_SERIAL=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ CONFIG_CORTEX_M_SYSTICK=y

# 84MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/disco_l475_iot1/disco_l475_iot1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_BOARD_DISCO_L475_IOT1=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L475XX=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# enable uart driver
CONFIG_SERIAL=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_SOC_STM32F415XX=y
# 168MHz system clock
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f207zg/nucleo_f207zg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ CONFIG_SOC_SERIES_STM32F2X=y
CONFIG_SOC_STM32F207XX=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=120000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

CONFIG_SERIAL=y

Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f302r8/nucleo_f302r8_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ CONFIG_SOC_STM32F302X8=y
CONFIG_CORTEX_M_SYSTICK=y
# 72 MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

CONFIG_SERIAL=y

Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f401re/nucleo_f401re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F401XE=y
CONFIG_CORTEX_M_SYSTICK=y
# 84MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f411re/nucleo_f411re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F411XE=y
CONFIG_CORTEX_M_SYSTICK=y
# 96MHz system clock (highest value to get a precise USB clock)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f412zg/nucleo_f412zg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F412ZG=y
CONFIG_CORTEX_M_SYSTICK=y
# 96MHz system clock (highest value to get a precise USB clock)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f413zh/nucleo_f413zh_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F413XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 96MHz system clock (highest value to get a precise USB clock)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f429zi/nucleo_f429zi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ CONFIG_SOC_STM32F429XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock (highest value to get a precise USB clock)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f446re/nucleo_f446re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F446XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 96MHz system clock (highest value to get a precise USB clock)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f746zg/nucleo_f746zg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F746XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 72MHz system clock (CubeMX Defaults)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_f756zg/nucleo_f756zg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F756XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 72MHz system clock (CubeMX Defaults)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_l053r8/nucleo_l053r8_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ CONFIG_BOARD_NUCLEO_L053R8=y
# General Kernel Options
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Kernel Options due to Low Memory (8k)
CONFIG_MAIN_STACK_SIZE=640
Expand Down
1 change: 0 additions & 1 deletion boards/arm/nucleo_wb55rg/nucleo_wb55rg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ CONFIG_SOC_STM32WB55XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 32MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# enable uart driver
CONFIG_SERIAL=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/olimex_stm32_e407/olimex_stm32_e407_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F407XG=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/olimex_stm32_h407/olimex_stm32_h407_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F407XG=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/olimex_stm32_p405/olimex_stm32_p405_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F405XG=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f3_disco/stm32f3_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F303XC=y
CONFIG_CORTEX_M_SYSTICK=y
# 72MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# ARM Options
CONFIG_CPU_HAS_FPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f411e_disco/stm32f411e_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F411XE=y
CONFIG_CORTEX_M_SYSTICK=y
# 100MHz system clock (highest value to get a precise USB clock should be 96MHz)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=100000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f412g_disco/stm32f412g_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F412ZG=y
CONFIG_CORTEX_M_SYSTICK=y
# 100MHz system clock (highest value to get a precise USB clock should be 96MHz)
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=100000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f429i_disc1/stm32f429i_disc1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F429XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f469i_disco/stm32f469i_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F469XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 180MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f4_disco/stm32f4_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F407XG=y
CONFIG_CORTEX_M_SYSTICK=y
# 168MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_ARM_MPU=y
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f723e_disco/stm32f723e_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F723XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 216MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=216000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

CONFIG_SERIAL=y

Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f746g_disco/stm32f746g_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F746XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 216MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=216000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

CONFIG_SERIAL=y

Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32f769i_disco/stm32f769i_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CONFIG_SOC_STM32F769XX=y
CONFIG_CORTEX_M_SYSTICK=y
# 216MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=216000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/hp206c/hp206c.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

struct hp206c_device_data {
struct device *i2c;
#if CONFIG_SYS_CLOCK_TICKS_PER_SEC != 1000
#if CONFIG_SYS_CLOCK_TICKS_PER_SEC < 1000
#error "driver needs millisecond tick granularity"
#endif
struct k_timer tmr;
Expand Down
Loading