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>
This commit is contained in:
parent
819e7aec77
commit
a6a015e90b
1 changed files with 0 additions and 29 deletions
|
@ -340,35 +340,6 @@ u32_t z_timer_cycle_get_32(void)
|
|||
#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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue