| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |  * | 
| Justin P. Mattock | 79add62 | 2011-04-04 14:15:29 -0700 | [diff] [blame] | 8 |  * Copyright (C) 1996 David S. Miller (davem@davemloft.net) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 |  */ | 
 | 10 | #include <linux/init.h> | 
 | 11 |  | 
| Aurelien Jarno | 2f56cfd | 2007-09-05 08:59:34 +0200 | [diff] [blame] | 12 | #include <asm/fw/arc/types.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <asm/sgialib.h> | 
 | 14 |  | 
 | 15 | struct linux_tinfo * __init | 
 | 16 | ArcGetTime(VOID) | 
 | 17 | { | 
 | 18 | 	return (struct linux_tinfo *) ARC_CALL0(get_tinfo); | 
 | 19 | } | 
 | 20 |  | 
 | 21 | ULONG __init | 
 | 22 | ArcGetRelativeTime(VOID) | 
 | 23 | { | 
 | 24 | 	return ARC_CALL0(get_rtime); | 
 | 25 | } |