Re: [PATCH 01/22] time: move the CONFIG_SYS_TIMER_RATE handling to the compiler

2022-08-17 Thread Pali Rohár
On Wednesday 17 August 2022 21:37:48 Michael Walle wrote: > CONFIG_SYS_TIMER_RATE might be a dynamic value, i.e. a function call > instead of a static value, thus it has to be evaluated at runtime. If it > is a static value, the compiler should be able to optimize the unused > branches out. > > Th

[PATCH 01/22] time: move the CONFIG_SYS_TIMER_RATE handling to the compiler

2022-08-17 Thread Michael Walle
CONFIG_SYS_TIMER_RATE might be a dynamic value, i.e. a function call instead of a static value, thus it has to be evaluated at runtime. If it is a static value, the compiler should be able to optimize the unused branches out. This will be needed for kirkwoods dynamic CONFIG_SYS_TCLK setting. Cc: