diff options
Diffstat (limited to 'arch/x86/lib/timer.c')
| -rw-r--r-- | arch/x86/lib/timer.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/arch/x86/lib/timer.c b/arch/x86/lib/timer.c index 8b1bde708..fd7032e92 100644 --- a/arch/x86/lib/timer.c +++ b/arch/x86/lib/timer.c @@ -35,15 +35,15 @@ struct timer_isr_function {  	timer_fnc_t *isr_func;  }; -static struct timer_isr_function *first_timer_isr = NULL; -static volatile unsigned long system_ticks = 0; +static struct timer_isr_function *first_timer_isr; +static unsigned long system_ticks;  /*   * register_timer_isr() allows multiple architecture and board specific   * functions to be called every millisecond. Keep the execution time of   * each function as low as possible   */ -int register_timer_isr (timer_fnc_t *isr_func) +int register_timer_isr(timer_fnc_t *isr_func)  {  	struct timer_isr_function *new_func;  	struct timer_isr_function *temp; @@ -61,7 +61,7 @@ int register_timer_isr (timer_fnc_t *isr_func)  	 *  Don't allow timer interrupts while the  	 *  linked list is being modified  	 */ -	flag = disable_interrupts (); +	flag = disable_interrupts();  	if (first_timer_isr == NULL) {  		first_timer_isr = new_func; @@ -73,7 +73,7 @@ int register_timer_isr (timer_fnc_t *isr_func)  	}  	if (flag) -		enable_interrupts (); +		enable_interrupts();  	return 0;  } @@ -89,12 +89,12 @@ void timer_isr(void *unused)  	/* Execute each registered function */  	while (temp != NULL) { -		temp->isr_func (); +		temp->isr_func();  		temp = temp->next;  	}  } -ulong get_timer (ulong base) +ulong get_timer(ulong base)  { -	return (system_ticks - base); +	return system_ticks - base;  } |