time.c 549 B

12345678910111213141516171819202122232425
  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 (davem@davemloft.net)
  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. }