timer_driver() no longer takes a parameter
Removing the parameter to timer_driver() as it is not used. Change-Id: I09275287eeb541be0dd315056b4f2bc6cbc2573c Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
72fc864282
commit
136bef3c5d
11 changed files with 11 additions and 29 deletions
|
@ -34,4 +34,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver(0)'
|
TIMERDRIVER 'timer_driver()'
|
||||||
|
|
|
@ -33,4 +33,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver(0)'
|
TIMERDRIVER 'timer_driver()'
|
||||||
|
|
|
@ -33,4 +33,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ===============================================
|
% ===============================================
|
||||||
TIMERDRIVER 'timer_driver(0)'
|
TIMERDRIVER 'timer_driver()'
|
||||||
|
|
|
@ -34,4 +34,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver(0)'
|
TIMERDRIVER 'timer_driver()'
|
||||||
|
|
|
@ -163,15 +163,11 @@ void _timer_int_handler(void *unused)
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void timer_driver(
|
void timer_driver(void)
|
||||||
int priority /* priority parameter ignored by this driver */
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
int irq = CONFIG_ARCV2_TIMER0_INT_LVL;
|
int irq = CONFIG_ARCV2_TIMER0_INT_LVL;
|
||||||
int prio = CONFIG_ARCV2_TIMER0_INT_PRI;
|
int prio = CONFIG_ARCV2_TIMER0_INT_PRI;
|
||||||
|
|
||||||
ARG_UNUSED(priority);
|
|
||||||
|
|
||||||
/* ensure that the timer will not generate interrupts */
|
/* ensure that the timer will not generate interrupts */
|
||||||
_arc_v2_aux_reg_write(_ARC_V2_TMR0_CONTROL, 0);
|
_arc_v2_aux_reg_write(_ARC_V2_TMR0_CONTROL, 0);
|
||||||
_arc_v2_aux_reg_write(_ARC_V2_TMR0_COUNT, 0); /* clear the count value */
|
_arc_v2_aux_reg_write(_ARC_V2_TMR0_COUNT, 0); /* clear the count value */
|
||||||
|
|
|
@ -615,15 +615,11 @@ void _timer_idle_exit(void)
|
||||||
*
|
*
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
void timer_driver(int priority /* priority parameter is ignored by this driver
|
void timer_driver(void)
|
||||||
*/
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/* enable counter, interrupt and set clock src to system clock */
|
/* enable counter, interrupt and set clock src to system clock */
|
||||||
union __stcsr stcsr = {.bit = {1, 1, 1, 0, 0, 0} };
|
union __stcsr stcsr = {.bit = {1, 1, 1, 0, 0, 0} };
|
||||||
|
|
||||||
ARG_UNUSED(priority);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Determine the reload value to achieve the configured tick rate.
|
* Determine the reload value to achieve the configured tick rate.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -497,9 +497,7 @@ void _timer_idle_exit(void)
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void timer_driver(int priority /* priority parameter is ignored by this driver
|
void timer_driver(void)
|
||||||
*/
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
uint64_t hpetClockPeriod;
|
uint64_t hpetClockPeriod;
|
||||||
uint64_t tickFempto;
|
uint64_t tickFempto;
|
||||||
|
@ -507,8 +505,6 @@ void timer_driver(int priority /* priority parameter is ignored by this driver
|
||||||
uint32_t counter_load_value;
|
uint32_t counter_load_value;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ARG_UNUSED(priority);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initial state of HPET is unknown, so put it back in a reset-like
|
* Initial state of HPET is unknown, so put it back in a reset-like
|
||||||
* state
|
* state
|
||||||
|
|
|
@ -476,11 +476,8 @@ void _timer_idle_exit(void)
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void timer_driver(int priority /* priority parameter ignored by this driver */
|
void timer_driver(void)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
ARG_UNUSED(priority);
|
|
||||||
|
|
||||||
/* determine the PIT counter value (in timer clock cycles/system tick)
|
/* determine the PIT counter value (in timer clock cycles/system tick)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -540,11 +540,8 @@ void _timer_idle_exit(void)
|
||||||
* @return N/A
|
* @return N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void timer_driver(int priority /* priority parameter ignored by this driver */
|
void timer_driver(void)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
ARG_UNUSED(priority);
|
|
||||||
|
|
||||||
/* determine the PIT counter value (in timer clock cycles/system tick)
|
/* determine the PIT counter value (in timer clock cycles/system tick)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ GTEXT(_timer_int_handler)
|
||||||
#else /* _ASMLANGUAGE */
|
#else /* _ASMLANGUAGE */
|
||||||
|
|
||||||
extern uint32_t timer_read(void);
|
extern uint32_t timer_read(void);
|
||||||
extern void timer_driver(int prio);
|
extern void timer_driver(void);
|
||||||
/*
|
/*
|
||||||
* Timer interrupt handler is one of the routines that the driver
|
* Timer interrupt handler is one of the routines that the driver
|
||||||
* has to implement, but it is not necessarily an external function.
|
* has to implement, but it is not necessarily an external function.
|
||||||
|
|
|
@ -63,7 +63,7 @@ uint32_t _sys_idle_elapsed_ticks = 1;
|
||||||
|
|
||||||
void nano_time_init(void)
|
void nano_time_init(void)
|
||||||
{
|
{
|
||||||
timer_driver(0); /* note: priority parameter is unused */
|
timer_driver();
|
||||||
}
|
}
|
||||||
|
|
||||||
SYS_PREKERNEL_INIT(nano_time_init, 250);
|
SYS_PREKERNEL_INIT(nano_time_init, 250);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue