time.h 627 B

1234567891011121314151617181920212223
  1. /*
  2. * OpenRISC timer API
  3. *
  4. * Copyright (C) 2017 by Stafford Horne ([email protected])
  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. extern void openrisc_clockevent_init(void);
  13. extern void openrisc_timer_set(unsigned long count);
  14. extern void openrisc_timer_set_next(unsigned long delta);
  15. #ifdef CONFIG_SMP
  16. extern void synchronise_count_master(int cpu);
  17. extern void synchronise_count_slave(int cpu);
  18. #endif
  19. #endif /* __ASM_OR1K_TIME_H */