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