xref: /linux/arch/openrisc/include/asm/time.h (revision be709d48329a500621d2a05835283150ae137b45)
1 /*
2  * OpenRISC timer API
3  *
4  * Copyright (C) 2017 by Stafford Horne (shorne@gmail.com)
5  *
6  * This file is subject to the terms and conditions of the GNU General Public
7  * License.  See the file "COPYING" in the main directory of this archive
8  * for more details.
9  */
10 #ifndef __ASM_OR1K_TIME_H
11 #define __ASM_OR1K_TIME_H
12 
13 extern void openrisc_clockevent_init(void);
14 
15 extern void openrisc_timer_set(unsigned long count);
16 extern void openrisc_timer_set_next(unsigned long delta);
17 
18 #ifdef CONFIG_SMP
19 extern void synchronise_count_master(int cpu);
20 extern void synchronise_count_slave(int cpu);
21 #endif
22 
23 #endif /* __ASM_OR1K_TIME_H */
24