time.h (8e6d08e0a15e7d4d4b608b56597350d4cdd77710) time.h (4553474d977d1ee8a81067cfbc588f1df84ce3e9)
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
13extern void openrisc_clockevent_init(void);
14
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
13extern void openrisc_clockevent_init(void);
14
15extern void openrisc_timer_set(unsigned long count);
16extern void openrisc_timer_set_next(unsigned long delta);
17
18#ifdef CONFIG_SMP
19extern void synchronise_count_master(int cpu);
20extern void synchronise_count_slave(int cpu);
21#endif
22
15#endif /* __ASM_OR1K_TIME_H */
23#endif /* __ASM_OR1K_TIME_H */