PageRenderTime 23ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/mips/fw/arc/time.c

https://bitbucket.org/cresqo/cm7-p500-kernel
C | 25 lines | 13 code | 3 blank | 9 comment | 0 complexity | c4a522ed1f0130f0558660d97cc0fef3 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Extracting time information from ARCS prom.
  7. *
  8. * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
  9. */
  10. #include <linux/init.h>
  11. #include <asm/fw/arc/types.h>
  12. #include <asm/sgialib.h>
  13. struct linux_tinfo * __init
  14. ArcGetTime(VOID)
  15. {
  16. return (struct linux_tinfo *) ARC_CALL0(get_tinfo);
  17. }
  18. ULONG __init
  19. ArcGetRelativeTime(VOID)
  20. {
  21. return ARC_CALL0(get_rtime);
  22. }