driver: arcv2_timer: remove sys_clock_disable
sys_clock_disable now is only called in sys_reboot.
This API is outdated, no need to implement it and
there is a weak version.
Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
diff --git a/drivers/timer/arcv2_timer0.c b/drivers/timer/arcv2_timer0.c
index 72a46f4..dbf8781 100644
--- a/drivers/timer/arcv2_timer0.c
+++ b/drivers/timer/arcv2_timer0.c
@@ -340,35 +340,6 @@
#endif
}
-/**
- *
- * @brief Stop announcing ticks into the kernel
- *
- * This routine disables timer interrupt generation and delivery.
- * Note that the timer's counting cannot be stopped by software.
- *
- * @return N/A
- */
-void sys_clock_disable(void)
-{
- unsigned int key; /* interrupt lock level */
- u32_t control; /* timer control register value */
-
- key = irq_lock();
-
- /* disable interrupt generation */
-
- control = timer0_control_register_get();
- timer0_control_register_set(control & ~_ARC_V2_TMR_CTRL_IE);
-
- irq_unlock(key);
-
- /* disable interrupt in the interrupt controller */
-
- irq_disable(IRQ_TIMER0);
-}
-
-
#if SMP_TIMER_DRIVER
void smp_timer_init(void)
{