timer: rename SYSTEM_TIMER_DISABLE/timer_disable
Rename them to SYSTEM_CLOCK_DISABLE and sys_clock_disable to put the symbols in the proper namespace and to align with the rest of the timer APIs. Change-Id: I341cdb1bd6cc01e5662d8526c293d4e0acd6ec24 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
d44799de3e
commit
ac1148e1de
5 changed files with 17 additions and 17 deletions
|
@ -182,7 +182,7 @@ uint32_t _sys_clock_cycle_get(void)
|
|||
FUNC_ALIAS(_sys_clock_cycle_get, nano_cycle_get_32, uint32_t);
|
||||
FUNC_ALIAS(_sys_clock_cycle_get, task_cycle_get_32, uint32_t);
|
||||
|
||||
#if defined(CONFIG_SYSTEM_TIMER_DISABLE)
|
||||
#if defined(CONFIG_SYSTEM_CLOCK_DISABLE)
|
||||
/**
|
||||
*
|
||||
* @brief Stop announcing ticks into the kernel
|
||||
|
@ -192,7 +192,7 @@ FUNC_ALIAS(_sys_clock_cycle_get, task_cycle_get_32, uint32_t);
|
|||
*
|
||||
* @return N/A
|
||||
*/
|
||||
void timer_disable(void)
|
||||
void sys_clock_disable(void)
|
||||
{
|
||||
unsigned int key; /* interrupt lock level */
|
||||
uint32_t ctrl_val; /* timer control register value */
|
||||
|
@ -210,4 +210,4 @@ void timer_disable(void)
|
|||
|
||||
irq_disable(CONFIG_ARCV2_TIMER0_INT_LVL);
|
||||
}
|
||||
#endif /* CONFIG_SYSTEM_TIMER_DISABLE */
|
||||
#endif /* CONFIG_SYSTEM_CLOCK_DISABLE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue