drivers: timer: run clang-format on RISC-V machine timer file
Clang-Format changes whitespacing and longer lines are now allowed Signed-off-by: Camille BAUD <mail@massdriver.space>
This commit is contained in:
parent
f11f68eade
commit
14fa2873b5
1 changed files with 8 additions and 10 deletions
|
|
@ -20,8 +20,7 @@
|
|||
#define MTIMECMP_REG DT_INST_REG_ADDR_BY_IDX(0, 1)
|
||||
#define TIMER_IRQN DT_INST_IRQN(0)
|
||||
|
||||
#define CYC_PER_TICK (uint32_t)(sys_clock_hw_cycles_per_sec() \
|
||||
/ CONFIG_SYS_CLOCK_TICKS_PER_SEC)
|
||||
#define CYC_PER_TICK (uint32_t)(sys_clock_hw_cycles_per_sec() / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
|
||||
|
||||
/* the unsigned long cast limits divisions to native CPU register width */
|
||||
#define cycle_diff_t unsigned long
|
||||
|
|
@ -195,5 +194,4 @@ void smp_timer_init(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
SYS_INIT(sys_clock_driver_init, PRE_KERNEL_2,
|
||||
CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
|
||||
SYS_INIT(sys_clock_driver_init, PRE_KERNEL_2, CONFIG_SYSTEM_CLOCK_INIT_PRIORITY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue