drivers: timer: Remove unused divider setter in RISC-V machine timer
This removes a unused function for a unused binding, and is prelude to a refactoring Signed-off-by: Camille BAUD <mail@massdriver.space>
This commit is contained in:
parent
970204227f
commit
bf45c496bb
1 changed files with 0 additions and 11 deletions
|
@ -138,14 +138,6 @@ static void set_mtimecmp(uint64_t time)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_divider(void)
|
|
||||||
{
|
|
||||||
#ifdef MTIMER_HAS_DIVIDER
|
|
||||||
*(volatile uint32_t *)MTIMEDIV_REG =
|
|
||||||
CONFIG_RISCV_MACHINE_TIMER_SYSTEM_CLOCK_DIVIDER;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static uint64_t mtime(void)
|
static uint64_t mtime(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_64BIT
|
#ifdef CONFIG_64BIT
|
||||||
|
@ -240,9 +232,6 @@ uint64_t sys_clock_cycle_get_64(void)
|
||||||
|
|
||||||
static int sys_clock_driver_init(void)
|
static int sys_clock_driver_init(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
set_divider();
|
|
||||||
|
|
||||||
IRQ_CONNECT(TIMER_IRQN, 0, timer_isr, NULL, 0);
|
IRQ_CONNECT(TIMER_IRQN, 0, timer_isr, NULL, 0);
|
||||||
last_ticks = mtime() / CYC_PER_TICK;
|
last_ticks = mtime() / CYC_PER_TICK;
|
||||||
last_count = last_ticks * CYC_PER_TICK;
|
last_count = last_ticks * CYC_PER_TICK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue